On 06/18/2010 05:17 AM, Tomas Doran wrote:

On 18 Jun 2010, at 09:58, piotr pogorzelski wrote:
Hi,
I prefer instead of
    catalyst.pl MyApp
run
    catalyst.pl MyApp::Catalyst

and keep my model, helpers, or other application
modules below MyApp::Catalyst, leaving MyApp::Catalyst for
web interface modules.

using DBIC::Schema i create it under MyApp::Schema

later building model in MyApp::Model and importing
it into Catalyst Model using Catalyst::Model::Adaptor

I entirely agree with this idea, except for the naming scheme. I much prefer to name things by what they do, rather than what they are.

E.g. MyApp::Web vs MyApp::Catalyst.
E.g. MyApp::View::HTML vs MyApp::View::TT

The former in both cases tells you what the code is _for_, the latter tells you instead what it's implemented with, which isn't (in my opinion) as semantically helpful when thinking about your application layout.

Cheers
t0m

Yeah, that's just from habit (the docs on cpan and, I think, in the Catalyst book, have "script/myapp_create.pl view TT TT").

-Sir


_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to