gem install padrino padrino g project test_app -d datamapper -b cd test_app padrino g admin padrino rake dm:migrate seed padrino start Sinatra Core Many people love the simplicity and expressiveness of Sinatra but quickly find themselves missing a great deal of functionality provided by other web frameworks such as Rails when building non-trivial applications. Sinatra acts as a thin layer on top o
This was so much harder than I expected it to be. I’m new to Objective-C, but a long time TDD-er with Ruby. Being able to write unit tests and mocks is an integral part of any language I work with now. After much searching and trial and error I got it to work. First, starting with a new iPhone application I followed these directions on how to get it setup. The Sen:Te guys are who wrote OCUnit in t
PureMVCを使用したFlexなどのアプリで、メモリの開放や初期化などで、 Mediator::onRegister Mediator::onRemove (Proxyも同様) が便利なことに気づいた~(いまさら) override public function onRegister():void{ //イベントリスナの登録 widget.addEventListener(Widget.OPEN, onOpen); widget.addEventListener(Widget.SAVE, onSave); } override public function onRemove():void{ //イベントリスナの削除 widget.removeEventListener(Widget.OPEN, onOpen); widget.removeEventListener(Widget
FlexのMVCフレームワークであるPureMVCが面白そう。デザインパターンを駆使した設計のようで ソースも読みたい。C#等への移植も行われている模様 PureMVC http://puremvc.org/ PureMVCとは? 計算機アプリによるチュートリアル http://blog-imgs-12.fc2.com/a/k/i/akiraminatuki/PureMVC.html http://blog-imgs-12.fc2.com/a/k/i/akiraminatuki/PureMVC_Example1.html http://blog-imgs-12.fc2.com/a/k/i/akiraminatuki/PureMVC_Example2.html http://blog-imgs-12.fc2.com/a/k/i/akiraminatuki/PureMVC_Example3.h
I’m continuing evaluating of Flex frameworks and drawing exercises. After drawing Cairngorm and Mate, I’ve explored and drew the diagram of the PureMVC workflow. This diagram is not a replacement for the conceptual diagram included in the well written documentation of PureMVC, but it may give you a little better understanding of what’s going on under the hood. As usual, I’d appreciate any feedback
PureMVCを実装するときに実装側に必要なクラス構成と、 そこで必要な処理をメモとして簡単にまとめてみました。 まだソースは読みきれていないので、ざっくりとした基本的な解釈です。 場合によっては過不足あるかも知れませんが、 いちおう一般的なFlexアプリを想定した場合です。 【Controller】 ●アプリケーションファイル(MXMLまたはSpriteの拡張クラス) ・Facadeクラスをインスタンス化 ・アプリケーションをスタートアップイベント識別子と関連付けてFacadeに登録 ●Facadeの具象クラス ・スタートアップイベントと各ビジネスイベント識別子を定義 ・スタートアップイベントと各ビジネスイベントを、 対応する各Commandクラスと関連付けて登録 ●Commandの各具象クラス ≪スタートアップCommand≫ ・初期化した各ProxyをFacad
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く