Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^4: Review: CGI::Prototype

by mfuller (Novice)
on Dec 04, 2004 at 21:33 UTC ( #412431=note: print w/replies, xml ) Need Help??

in reply to Re^3: Review: CGI::Prototype
in thread Review: CGI::Prototype

>Polymorphism becomes important in C::P as a way of handling special cases (e.g. a form with errors) without repetitive coding. Whereas with C::A, the special case coding would more likely happen procedurally in the templates.

In C::A, when I have common processing I place it in a .pl file and require it in the proper modules. If I were better at OO, I guess I could make it a class and reference it similarly to what you describe for C::P.

Do you know, is there a significant performance hit for doing everything in a C::P object model compared to C::A's model which (at least the way I use it) is more procedural programming within a basic framework of objects? Would this be a consideration for higher volume sites?


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2021-06-22 15:04 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (106 votes). Check out past polls.