Thẻ
#software-design
2 bài viết

Software Craft9 phút đọc
Khi Nào Nên Dùng Class vs. Function Trong Python: Checklist Thiết Kế
Mental checklist lặp lại được cho Python developer: khi nào dùng class, khi nào dùng function, instance state và dependency injection.
#python#software-design#architecture

Software Craft7 phút đọc
Khi Nào Nên Dùng Dataclass, Generator và Try/Except Trong Python
Phần 2 mental checklist thiết kế cho Python developer: chọn giữa Dict vs Dataclass, List vs Generator, EAFP vs LBYL và static method vs function.
#python#software-design#best-practices