July 31, 2003

perl.com: Forget about boring and repetitive code

Interesting article on how to simplify that most boring part of all web programming: getting stuff from a database and showing it in a list.

One of the most boring programming tasks in the world has to be pulling data out of a database and displaying it on a web site. Yet it's also one of the most ubiquitous. Perl programmers being lazy, there are tools to help make boring programming tasks less painful, and two of these tools, Class::DBI and the Template Toolkit, create a whole which is far more drudgery-destroying than its parts.

The immediate benefits of all this are obvious:

  • You don't have to mess about with HTML, since the very simplistic use of the Template Toolkit means that templates are comprehensible to competent web designers.
  • You don't have to maintain classes full of copy-and-paste code, since the repetitive programming tasks like creating constructors and simple accessors are done for you.

perl.com: How to Avoid Writing Code (Jul. 15, 2003)

Posted by manne at July 31, 2003 11:14 AM | TrackBack

Random fortune brought to you by www.fortunes.nu:

:: ()

Comments

Post a comment









Remember personal info?






Extreme Tracking