Your skill will accomplish what the force of many cannot |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
unhealthy fascination with OO (inspired by the desire to complete with Python) which I consider counterproductivePython? Really? Do you mean Ruby? Quoting Matz from An Interview with the Creator of Ruby: "Then I came across Python. It was an interpretive, object-oriented language. But I didn't feel like it was a "scripting" language. In addition, it was a hybrid language of procedural programming and object-oriented programming. I wanted a scripting language that was more powerful than Perl, and more object-oriented than Python."
When I see bless statement in simple scripts I suspect fraudThat's an extreme position to take. Though an obsession with OO is unhealthy, your apparent anti-OO obsession is just as unhealthy IMHO. Don't want to use Moose? Fine. But don't blindly reject sound principles of design - which include using OO when appropriate. As for whether and when to use OO, there is no substitute for judgement and taste. A simple rule of thumb is to ask "do I need more than one?": if the answer is yes, an object is indicated; if the answer is no, then a module. High-level Design Checklist (derived from On Coding Standards and Code Reviews)
Some Related Perl Monks Nodes
In reply to Re^3: Perl archeology: Need help in refactoring of old Perl code that does not use strict (hurry up and wait)
by eyepopslikeamosquito
|
|