[Pdx-pm] Software development and The Rules
Joshua Keroes
jkeroes at eli.net
Tue Sep 24 18:59:57 CDT 2002
On (Tue, Sep 24 19:46), Josh Heumann wrote:
> > It seems like 75% of the software developers out there don't follow The
> > Rules (or know why they are breaking them)
>
> I'm reading up on how to apply the Model/View/Controller theory to perl
> (cgi in particular)
Sure, MVC is a useful pattern that provides some pretty clear lines where
to cut your classes.
I don't see why you couldn't implement your CGIs as a single-view MVC.
It really depends on what you're trying to get out of the pattern. I've
used them with multiple Views before, writing to CGI or command-line,
per the user's wishes. That's just me. You could use multiple Models
(i.e., datasets) or Controllers (e.g., polymorphism) just as easily.
There a good implementation of an MVC in 'rezrov', a Perl Z-Code
emulator that runs Zork and most of the other infocom games).
viz. The Perl Journal #13, Spring 1999.
You can get rezrov from http://www.users.voicenet.com/~mikeedmo/rezrov/
-Joshua
PS If you want to borrow that TPC, it's your for the asking.
More information about the Pdx-pm-list
mailing list