# 實作坊筆記 1. 推薦書籍: 1. GOOS: Growing Object-Oriented Software, Guided by Tests https://www.tenlong.com.tw/products/9780321503626 2. The Nature of Software Development: Keep It Simple, Make It Valuable, Build It Piece by Piece (Paperback) https://www.tenlong.com.tw/products/9781941222379?list_name=trs-f ## Clean Architecture 1. Clean architecture的entity不是jpa的entity Clean architecture的entity是可以有行為的,而且是重要行為(重要資料的執行者),而use case是啟動entity的入口(流程管理者) 1. Service不需要知道Repository的運作 1. 物件跟物件之間透過行為溝通 1. 錯誤處理 2. 關注user case, entity的設計 ## Unit-Test 1. 避免在Entity使用框架測試 2. 單元測試:支持重構 3. 主要路徑,次要路徑