>> What's the point of using Catalyst if all your Controller code is in >> the View (Mason)? >> >> Catalyst is supposed to help you split up your business logic(Model), >> application logic(Controller) and presentation logic (View). > > I agree 100%. Mason already has this exact dispatching method (URI -> > component) built-in, so what does Catalyst if this is all you do > with it? >
MVC is just one part of Catalyst. There are other compelling reasons to deploy Catalyst even just as another layer between Mason and the server: * Access to the wealth of plugins, e.g. sessions, auth/authz * A fast starting built-in web server, with the -r automatic restart- on-module-change * A rich, fairly sane webapp API which is agnostic about mod_perl vs FastCGI and yes, the last one is from your use.perl.org posting, and it's one of the things that convinced me to try Catalyst, and you were right about it. One of the nice things about Catalyst, unlike more opinionated frameworks, is that you can pick and choose which pieces you use from it. (That flexibility is also a disadvantage for reasons that have been discussed elsewhere.) > Putting all your controller logic, especially non-display logic > (like form > submission handling) in Mason components is a bad design (and yes, > I know > that's how the book's example site works ;) The jury's still out for me. I've been doing my own Catalyst site conversion, and I had high hopes for the controller stuff, but so far I'm feeling surprisingly underwhelmed. I feel like I'm expending a lot of extra energy keeping related code in sync between modules & components, and shuffling things from $c->params to $c->stash when I would have just used <%args> before. The Catalyst pattern-based action handling is wonderful and flexible, but the benefits of that haven't outweighed the extra work. So far. This is still very much a work in progress. Jon ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users