[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jfriends-ml 10592] Re: More Java Pitfalls



  高橋(智)です。

  これはかなり読書会向きだと思いました。後で推薦しておきます。
カバーしている範囲が、J2SE,Servlet/JSP,EJB,J2ME と広く、適度
な source code と解説が有ります。
  Topicの数も50個で、それぞれ興味深いTopicです。
  それぞれのTopicに明るい人がリードすれば、より有意義な読書会
になりそうです。(^^)

  たとえば、読書会でも話題になった assertion ですが、以下のよ
うな内容があります。

--------- 引用 ------------------------------------------
Item 7: My Assertion Are Not Gratuitous!
  <途中略>
    Many developers do not understand why or how to use
  assertions, and this has caused them to go widely unused.
  Some developers use them improperly, causing them to be
  ineffective or counterproductive to the developement effort.
    <途中略>
    In closing, there are a few rules to follow in dealing
  with assertions.
    ■ DO use assertions to test postconditions on methods.
    ■ DO use assertions to test places where you believe
        control flow should notexecute.
    ■ DO NOT use assertions to test preconditions on public methods.
    ■ DO use assertions to test preconditions on helper methods.
    ■ DO NOT user assertions that affect the normal operation
        of the code.
--------- 引用 ------------------------------------------

-- 
高橋智宏
  Java読書会( http://www.t3-jpn.com/bof/ )
  T3-Japan( http://www.t3-jpn.com/ )

"TAKAHASHI, Tomohiro" wrote:
>   ようやく届いた
>    More Java Pitfalls : 50 New Time-Saving Solutions and Workarounds
>    http://www.amazon.co.jp/exec/obidos/ASIN/0471237515
> を読みはじめました。
>   450ページほど有ります。
snip