in reply to Re^2: Mason & DBI driving me nuts
in thread Mason & DBI driving me nuts

MVC is an all around more rigidly structured way of handling the web, it tends to yield better code on the whole, while being easier to divvy out amonst a team. It is more so maintainable and scalable.

You have three fine divides, a model - interacts with the database (makes the data accessible in your language of choice), a controller which can access a model and holds all of your programming logic, and a view which simply reads from the context variable - catalyst's stash, rail's flash/other misc custom globals, etc.

The best Mason users, found on the mailing lists, will highlight these points in their methodologies, which largely mimic MVC now too. they often put their model functions in modules, isolated from the .mas files. A dhandler in mason is easily abstracted to be a controller, and the autohandler and seamless calling chain are the powerhouse of the language. If you start doing this too, and then you pick up a true MVC framework, you might come to view Mason as less developed -- I have.



Evan Carroll
www.EvanCarroll.com

Replies are listed 'Best First'.
Re^4: Mason & DBI driving me nuts
by doom (Deacon) on Aug 05, 2006 at 10:48 UTC
    Okay, well as I suspected, we have a terminological difference going here. You talk about "using an MVC", but I think of MVC as a design pattern, not a category of software. Further, it's somewhat confusing to talk about an MVC as opposed to Mason, because Mason can -- as you admit here -- be used to implement the MVC pattern. And that's pretty clearly the recommended usage in the Mason world: Also, as I suspected, when you talk about "a true MVC framework", you're talking about the current fad for what I would call web application frameworks, all of which (to my knowledge) use some sort of object-relational mapper, (e.g. Class::DBI). The key feature of these things seems to be that they sacrifice database design for the sake of object design, which while this may speed up development it strikes me as being exactly backwards as far as performance is concerned.

    And so we come to your closing shot: "pick up a true MVC framework, you might come to view Mason as less developed -- I have." May I inquire, in what way you find it "less developed"?