用程式碼 表達本意 Posted on 2024-08-23 In CleanCode Views: Disqus: Symbols count in article: 222 Reading time ≈ 1 mins.用程式碼 表達本意用程式碼 表達本意用程式碼 表達本意許多程式設計師認為程式碼很少能做好解釋這項工作,這顯然是錯誤的,你希望看到是下列哪段程式碼?if (employee.flags && HOURLY_FLAG && employee.age > 65)或if (employee.isEligibleForFullBenefits())函式名稱能表達程式碼的大部分意圖,你想要寫下的註解,都可以簡單融入到建立的函式名稱當中。