タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

考え方とOOPとprogrammingに関するgologo13のブックマーク (2)

  • クラスの命名のアンチパターン - Qiita

    昔から「名は体を表す」と言ひます。クラスの名前がクラスの果たす役割と一致してゐるかどうか常に考へ続けませう。 ImageInfo, AccountData, etc. Info って何やねん? Data って何やねん? ImageInfo って Image とはどう違ふねん?? FooInfo や FooData よりも好ましいかもしれない名前の例: FooAttribute, FooProperty, FooMetadata, FooDescription FooConfiguration, FooSetting, FooParameter FooResult, FooStatistics, FooSummary FooBuffer, FooList, FooCollection, ... ProductListItem, TranslationTableEntry, etc. Prod

    クラスの命名のアンチパターン - Qiita
  • Why OO Sucks by Joe Armstrong

    (Note: This is a copy of the original that used to live at http://www.bluetail.com/~joe/vol1/v1_oo.html) When I was first introduced to the idea of OOP I was skeptical but didn’t know why - it just felt “wrong”. After its introduction OOP became very popular (I will explain why later) and criticising OOP was rather like “swearing in church”. OOness became something that every respectable language

    gologo13
    gologo13 2013/06/13
    読んだ。異議4のオブジェクトが隠れた状態をもつという指摘は一番よくわかる。俺がOOP使い始めたとき違和感を持ったのは多分ここだ。
  • 1