Just another Perl shrine | |
PerlMonks |
Re: Re: OT - Apache Toolkit - PHP & mod_perlby etcshadow (Priest) |
on Oct 06, 2003 at 20:44 UTC ( [id://297076]=note: print w/replies, xml ) | Need Help?? |
Yeah. ABSOLUTELY separate your business logic and dataase access from your display logic. Your ASP pages should be kept pretty light on the business/DB logic (ideally containing almost none), keeping most of that in your modules.
Apart from the obvious aspects of maintainability, you will find this to be a very good thing down the road, if (when) you find yourself writing various standalone scripts to access and manipualte these same business objects. This is one of the ways in which perl shines over PHP (although PHP has gotten better about this... it used to be that the only real way to make a "command-line-script" to manipulate your business objects was to use curl or wget :-0)... in a properly written mod_perl app, you can do any business object manipulation from a script (and easily) that you could from your web UI. ---------- :Wq Not an editor command: Wq
In Section
Seekers of Perl Wisdom
|
|