Tips for writing clear, performant, and idiomatic Go code
アクティブレコード 1行に対応 ドメインロジックを実装している 最近はDBよりの所にドメインロジックを書くのは廃れている RailsのActiveRecord、S2JDBCとか データマッパー ドメイン設計したクラス群とERモデルのマッピング Hibernate、DjangoのORマッパー オブジェクト指向により忠実 PofEAAをみると、アクティブレコードは、「テーブルの行をオブジェクトでラップしたもの」で、データマッパーは、「データベースとオブジェクトを独立して設計しそれらを結びつけるもの」と書いているので、アクティブレコードパターンは勘違いされやすいかも。 アクティブレコードの定義を原文から持ってくると次のようになります。 An object that wraps a row in a database table or view, encapsulates the database
The default architecture for Ruby on Rails, Model View Controller, can begin to break down as Controllers become bloated and logic begins to creep into view templates. The Presenter pattern addresses this problem by adding another layer of abstraction: a class representation of the state of the view. Presenter was inspired by the various GUI patterns documented by Martin Fowler. How It Works The P
ふと思ったんだけれど、「デザインパターンたん」って誰か考えただろうか。 他人をあやつるTemplate Methodたん。意外に融通がきかない。 心が入れ子になっているCompositeたん。箱根の寄木細工収集が趣味。 旅が好きなVisitorたん。 一見孤独そうに見えるSingletonたん。実は人付き合いが良すぎるのが欠点。 ダイエットマニアのFlyweightたん。Immutableたんは親友。 委員長属性のMediatorたん。 話が合わない二人の間を取り持つのがうまいAdapterたん。 Decoratorたんの夢は十二単。 ……書いていて脱力してきたのでおしまい。 以下は関連しそうな「OSたん」一覧。 http://en.wikipedia.org/wiki/List_of_OS-tans 追記: 嫌いなオカズは隣の人にあげちゃうChain of Responsibilityた
xUnit Test Patterns - the book The book has won a Jolt Productivity Award in the Best Technical Book category! Here's what the reviewer Rick Wayne said about why the book won the award: Unit testing is hardly news, but simply writing a ton of tests guarantees you no bliss. Gerard Meszaros's xUnit Test Patterns distills and codifies the crucial meta-knowledge to take us to the next level. Why do go
<< 2006/09/ 1 1. RFC4627 JSON 2. [Ruby] Author Interviews: Hal Fulton - The Ruby Way 3. 新たな技術を確たるビジネスに変える−スタートアップ企業の聖地オレゴン 4. Joel on Software: Language Wars 2 1. [Ruby] Ruby for Symbian 2. U-20プログラミングコンテスト最終審査会 3. [Ruby] Symbol as subclass of String 4. [Ruby] nil.to_s 5. 遅れても困る人はいない , リリースは政治パフォーマンスなんだよ。 6. [Ruby] OSX 10.3とRuby 1.8.0 3 1. [OSS] しまねOSS協議会 設立記念イベント 2. [教会] 来客アリ 4 1. [OSS] オープンソースで地
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く