Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Appropriate amount of abstraction

by pg (Canon)
on Nov 15, 2004 at 00:03 UTC ( #407740=note: print w/ replies, xml ) Need Help??


in reply to Appropriate amount of abstraction

Even with CGI module, I doubt there are too many users of that module, if there is any, actually have no idea of, for example the basic html tags. It is hard for me to believe that there are people who are capable of coding in Perl and yet has absolutely no interest in knowing those tags.

Also there is a subtle difference between Class::DBI and CGI:

For CGI, all what you care is that it delivers the visual effect you want, simple and straight. Class::DBI is certainly a good tool to generate SQL statements for you, but the SQL statement it generated is not always optimized.

For some database implementations, they join tables in the sequence you stated in your SQL statement, without optimization or thinking. In some cases, the sequence of tale joins is the key to your query performance (you want the join happens in such a sequence that allows you to quickly narrow down the result set). With Class::DBI, you lost this kind of control.


Comment on Re: Appropriate amount of abstraction
Re^2: Appropriate amount of abstraction
by gunzip (Monk) on Nov 15, 2004 at 03:42 UTC

    I doubt there are too many users of that module, if there is any, actually have no idea of, for example the basic html tags

    I'm thinking more along the lines of the magic behind CGI.pm's param() function.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://407740]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2014-07-11 17:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (232 votes), past polls