Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Perl on OSX > Re: CGI.pm
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 6 Topic 994 of 1076
Post > Topic >>

Re: CGI.pm

by jeremiah@[EMAIL PROTECTED] (Jeremiah Foster) Sep 28, 2007 at 01:54 PM

On Sep 28, 2007, at 8:17 AM, Michael Barto wrote:

> This seems like a flame, but I will try and answer your question.  
> The reason why we are doing the HTML subroutines and so many others  
> with key at the start (e.g. JSCript, DB, make, get). is mostly to  
> sup****t long term maintenance and parse out pieces of the code for  
> a very large project (divide and conquer)
> The modules libraries are maintained in a consistent manner. The  
> variables $new_page and $from_page also are significant in this  
> large code. It just helps the many people that have to touch this  
> code have an easier path getting though any maintenance. The main  
> program is nothing more than large set subroutine calls broken down  
> in sections. The  subroutine calls are shared by many modules of  
> the large project.
>

The "best practices" procedure is to use MVC. (Model, View, Control)  
- this provides separation of logic and presentation and  
significantly aids in the long term maintenance of your code. Look at  
Damian Conway's book; Perl Best Practices.

By not following best practices you run the risk of making your code  
write only. An experienced perl programmer would have a hard time  
reading it and re-factor it according to best practices.

Following best practices will significantly increase readability,  
maintenance, and quality of your code.

	Jeremiah
 




 6 Posts in Topic:
CGI.pm
mbarto@[EMAIL PROTECTED]   2007-09-27 09:41:53 
Re: CGI.pm
jeremiah@[EMAIL PROTECTED  2007-09-27 23:02:49 
Re: CGI.pm
mbarto@[EMAIL PROTECTED]   2007-09-27 23:17:11 
Re: CGI.pm
jeremiah@[EMAIL PROTECTED  2007-09-28 13:54:03 
Re: CGI.pm
jeremiah@[EMAIL PROTECTED  2007-09-27 23:13:35 
Re: CGI.pm
jszinger@[EMAIL PROTECTED  2007-09-27 21:45:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 0:20:37 CST 2008.