パルカワ2

最近はFlutterをやっています

2014-02-24から1日間の記事一覧

DBICでRowがなかったらエラーを吐く

という処理は何回も書くと思う。だるい。前回はfindを上書きしようとしていた。 http://hisaichi5518.hatenablog.jp/entry/2013/12/03/175603 # MyApp::Schema::ResultSet # rowがなければMyApp::Exception::ResultNotFound sub find_with_exception { my $s…

MyApp::Model::Player::QuestとMyApp::Model::Player::Quest::Checker

MyApp::Model::Playerというのをリクエスト毎に作ってる。 そこにquest_checker_model(MyApp::Model::Player::Quest::Checker)とquest_model(MyApp::Model::Player::Quest)が生えてる。 別のプロジェクトでは、Result(Row)にMouse::Roleでprepare_questとか…