讀了 Kevin Pang 關於「每個程式設計師必知的 10 大編程格言」的文章(雖舊但佳)。Kevin 給出 10 條觀點格言,皆不錯。以下是我最喜愛的格言:
- 保持簡單直白 (Keep It Simple Stupid - KISS)
- 不要自我重複 (Don't Repeat Yourself - DRY)
- 能幹的人解決問題,智慧的人繞開問題 (A clever person solves a problem. A wise person avoids it) — Einstein
- 沉默會被理解為贊同 (Silence is construed as approval) — 來自 Kevin 部落格
- 沒有火就不會有煙 (There is no smoke without fire)
- 先想好,後編程 (Think first, Program later)
- 永遠不要假設電腦為你假設了任何前提 (Never assume the computer assumes anything)
你有什麼喜歡的編程格言?是什麼?