星期四, 11月 29, 2012

[書]Rapid Development - Taming Wild Software Schedules

已經忘了內容了,不過一句應該就可以帶出整本書的重點
「要快速沒有明確的方式,但避免已知的錯誤,就不會拖慢開發速度」


People

  • Undermined motivation
    Weak personnel
    Uncontrolled problem employees
    Heroics
    Adding people to a late project
    Noisy, crowded offices
    Friction between developers and customers
    Unrealistic expectations
    Lack of effective project sponsorship.
    Lack of stakeholder buy-in
    Lack of user input
    Wishful thinking

Process

星期一, 11月 05, 2012

Effective Java

8. Exceptions
條款39:只在異常情況下才使用異常機制

條款41:不要濫用checked exceptions
Checked exception會強制程式員處理異常狀態,因此過程使用會使API用起來很不方便。
如果API用戶無法做得更好,那麼他比較適合使用 unchecked 異常。
條款42:儘量使用Standard exceptions
常用的異常 (Effective Java p.177)

  • IllegalArgumentException
  • IllegalStateException
  • NullPointerException
  • IndexOutOfBoundsException
  • ConcurrentModificationException
  • UnsupportedOperationException
「選擇使用哪一種異常」並不是一種精確科學,因為並不互斥