Problems? Is your data what you think it is? | |
PerlMonks |
Re: Object oriented Perl: What's popular?by Erez (Priest) |
on Feb 01, 2008 at 19:16 UTC ( [id://665626]=note: print w/replies, xml ) | Need Help?? |
I may sound insane, but I like Perl 5's object model as it allows me to choose the right way for the design I'm interested in, while keeping everything Perlish enough. (Seeing that "Pure OO" languages tend to force their OO way-of-thinking on you). Since you wrote that your web-application is a "great candidate for an OO style", I would suggest that you should pursue this idea before writing any code. Find out what style you wish to utilise and the object model that you'll seek, and then find the tools that satisfy your needs. Another way of doing this is actually finding the right tools (which components your web-application will use) and the API that goes with them. Most of CPAN's modules are already displaying a heavy OO API, which may suggest a way for you to work. While Java (et al.)'s "Everything's an object (usually called Object)" state of mind isn't the only option out there, it seems that most people prefer their OO this way, making Moose a good choice, with its "Everything's a Moose::Object" style. UPDATE: Just checked and found that in JavaScript Everything is, in fact, an Object. Software speaks in tongues of man; I debug, therefore I code.
In Section
Seekers of Perl Wisdom
|
|