タグ

ooに関するtwainyのブックマーク (3)

  • OOコード養成ギブス - rants

    Binstock on Software: Perfecting OO's Small Classes and Short Methods The Pragmatic Programmersシリーズの新しい、The ThoughtWorks Anthologyの中に 興味をそそるエッセイがある。Jeff Bayの"Object Calisthenics"だ。 これは良いオブジェクト指向の性質を実証する小さなルーチンを書く方法をマスターするための 詳細にわたるエクササイズだ。オブジェクト指向なルーチンを書く能力を向上させたい開発者がいるなら このエッセイに目を通すことを勧める。ここにBayのアプローチを要約してみよう。 彼は次にあげられる制約のもとに1000行のプログラムを書くことを勧めている。 これらの制約は意図的に過剰な制限となっているが、これは開発者を手続き的なやり方から脱却させるた

    OOコード養成ギブス - rants
    twainy
    twainy 2008/07/30
  • Why getter and setter methods are evil

    Why getter and setter methods are evil Make your code more maintainable by avoiding accessors I didn't intend to start an "is evil" series, but several readers asked me to explain why I mentioned that you should avoid get/set methods in last month's column, "Why extends Is Evil." Though getter/setter methods are commonplace in Java, they are not particularly object oriented (OO). In fact, they can

    Why getter and setter methods are evil
    twainy
    twainy 2007/06/12
    getterとかsetterを使うのはデータの抽象化という観点から考えてよろしくないという話
  • Building bug-free O-O software: An introduction to Design by Contract

    This site contains older material on Eiffel. For the main Eiffel page, see http://www.eiffel.com. Building bug-free O-O software: An introduction to Design by Contract(TM) Eiffel Software is the pioneer of Design by Contract and the Component Revolution. For a more detailed look at Design by Contract and how it can make your code more reliable read this document or watch the presentations. Overvie

    twainy
    twainy 2005/11/19
    DbCについて
  • 1