Problems? Is your data what you think it is? | |
PerlMonks |
Re^4: Review: CGI::Prototypeby mfuller (Novice) |
on Dec 04, 2004 at 21:33 UTC ( [id://412431]=note: print w/replies, xml ) | Need Help?? |
>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? Mark
In Section
Meditations
|
|