Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Web presentation patterns, MVC, and reinventing the wheel

by perrin (Chancellor)
on Jan 30, 2003 at 21:11 UTC ( [id://231442]=note: print w/replies, xml ) Need Help??


in reply to Web presentation patterns, MVC, and reinventing the wheel

(I'm the author of the article you're referring to)

The big secret about MVC is that it's pathetically easy, and much easier in Perl than in Java because of the great templating solutions available and the ease of passing data around. (Java's strong typing often leads the authors of Java templating tools to create their own makeshift version of Perl's basic data types.) You are already doing it (assuming you use templates or something for the HTML generation), and there's really nothing wrong with what you have. As you point out, CGI::Application just saves you from coding the switch logic yourself.

Personally, I like to split up a site into multiple applications to keep the pieces small. Editing user data might be one, browsing a catalog might be another, searching another, etc. This keeps things more manageable.

If you want to see how other people have done it, I suggest you look at this page. In particular, OpenInteract is pretty close to what you're doing.

  • Comment on Re: Web presentation patterns, MVC, and reinventing the wheel

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://231442]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2024-04-25 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found