Shibuya.pmの予習

自宅coLinuxCatalystインスコしました。
なんかネットワークの調子がわるかったのか、
Bundle::Catalystを何度も実行させられました。
とりあえず無事インスコ

で、定型的に


$ catalyst.pl HelloCatalyst
created "HelloCatalyst"
created "HelloCatalyst/script"
created "HelloCatalyst/lib"
created "HelloCatalyst/root"
created "HelloCatalyst/t"
created "HelloCatalyst/t/M"
created "HelloCatalyst/t/V"
created "HelloCatalyst/t/C"
created "HelloCatalyst/lib/HelloCatalyst"
created "HelloCatalyst/lib/HelloCatalyst/M"
created "HelloCatalyst/lib/HelloCatalyst/V"
created "HelloCatalyst/lib/HelloCatalyst/C"
created "HelloCatalyst/lib/HelloCatalyst.pm"
created "HelloCatalyst/Build.PL"
created "HelloCatalyst/Makefile.PL"
created "HelloCatalyst/README"
created "HelloCatalyst/Changes"
created "HelloCatalyst/t/01app.t"
created "HelloCatalyst/t/02pod.t"
created "HelloCatalyst/t/03podcoverage.t"
created "HelloCatalyst/script/hellocatalyst_cgi.pl"
created "HelloCatalyst/script/hellocatalyst_fastcgi.pl"
created "HelloCatalyst/script/hellocatalyst_server.pl"
created "HelloCatalyst/script/hellocatalyst_test.pl"
created "HelloCatalyst/script/hellocatalyst_create.pl"
$ cd HelloCatalyst
$ ./script/hellocatalyst_create.pl view TT TT
$ ./script/hellocatalyst_server.pl

を実行。
で、ブラウザにアクセスすると。

Catalyst_image

こんなんでました〜。

まあ、ActivePerlのときとかわらんですな。

しかしCatalystいい。
何がいいってHelperスクリプトも最高だし、
なにしろ、Catalystインスコしたら
30秒もあればとりあえず動くものが作れるのですよ。

すばらしいですなぁ。

Catalyst=触媒ってことで、
CPANのいろいろなモジュールつかってますけど、それもいい。
Perlらしい。

Ruby on Railsの場合、DB部分はスクラッチなそうな。

Railsにあわせた形でスクラッチでかくのは悪くはないですが、
現在ある資源を有効活用するってのもいいんでないの〜w

と、Catalystの感想をば。

CGI::AppもHelperスクリプトあると便利かなぁ。