ฝึกมองโครงสร้างโค้ดและตัดสินใจว่าควร Refactor หรือยอมรับงานที่ AI เสนอเมื่อไร
พื้นฐานที่แนะนำ: คอร์ส 03–04 หรืออ่าน JavaScript Function และ API Flow ได้
เป้าหมายของ Software Design
readability, changeability, boundaries; requirements influence design
Module และ Separation
SRP ในทางปฏิบัติ; cohesion/coupling; dependencies
Architecture ภาพรวม
UI, service, repository, persistence; data and control flow
Clean Code & Refactoring
naming, duplication, long functions, DRY/KISS/YAGNI; test before refactor
SOLID และ DI เบื้องต้น
แนวคิด dependency inversion, interfaces และ tradeoffs ไม่ยึด pattern ตามกระแส
Design Patterns ที่ใช้บ่อย
Repository, Strategy, Factory, Adapter, Observer; ปัญหาที่แต่ละ pattern แก้ และเมื่อไรไม่ควรใช้
Guided Lab
แยก validation/business rule ออกจาก API handler ใน Task App และเลือก pattern ที่เหมาะ