2012-02-21から1日間の記事一覧
Adapter pattern https://gist.github.com/1875764Bridge pattern https://gist.github.com/1875758Composite pattern https://gist.github.com/1875890Decorator pattern https://gist.github.com/1875983
Singleton pattern https://gist.github.com/1874937Prototype pattern https://gist.github.com/1874918FactoryMethod pattern https://gist.github.com/1874123AbstractFactory pattern https://gist.github.com/1873880Builder pattern https://gist.gith…
https://gist.github.com/1874937これは敢えて言うまでもないScalaの機能のはず。
https://gist.github.com/1874918これもサンプルがあった。 http://d.hatena.ne.jp/nanjakkun/20100807/1281139973
https://gist.github.com/1874123すばらしいお手本がありました。 http://blog.designrecipe.jp/2011/01/03/factory-method-strategy/
https://gist.github.com/1874015これのJava版をそのままScalaにコピー、しようとしたのだが・・・ http://en.wikipedia.org/wiki/Builder_pattern PizzaBuilderとPizzaが相互参照してるので、 scalaプロンプト上では:loadできないですな。 しかたないのでab…
https://gist.github.com/1873880これのJava版をそのままScalaにコピーした。 http://en.wikipedia.org/wiki/Abstract_factory_pattern