in reply to Rebuttle to chromatics
Now, all my html is loaded via HTML::Template and all my SQL is in external files. I only look at perl when I edit a perl file.
Functions to generate html is very ugly and a nightmare to maintain. So is SQL. Queries are complex business and should probably be written by hand; how many abstractions layers have gotten joins right?
Write your query, send it straight to DBI and use DBI's utility methods to get the output into a sane structure.
The only exception to this rule is inserts; insert queries are never more complex than a multivalued insert. Inserts should be automatically done for you.
oye.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Rebuttle to chromatics
by princepawn (Parson) on May 08, 2001 at 22:03 UTC | |
by DrZaius (Monk) on May 08, 2001 at 22:26 UTC |