Do you know where your variables are? | |
PerlMonks |
Re: Right job for the tool.by InfiniteSilence (Curate) |
on May 28, 2014 at 14:09 UTC ( [id://1087654]=note: print w/replies, xml ) | Need Help?? |
Aha! Good question (although I probably would have technically classified this as a Meditation). My answer is this: you use OO programming techniques when the analysis methods you've used to scope the problem at hand make OO implementation a logical choice. Let me elaborate. Some people believe that they are using OO programming when they are actually only utilizing one of the aspects of OO -- encapsulation. Although this is a good place to start this, by itself, is not OO programming. There are may different approaches toward decent OO design, but the one that often makes sense to me goes something like this: identification of objects in a use case/story (nouns == objects; verbs == methods); sequence diagramming; and class diagrams. I've learned to despise using graphical tools to do this work so I started diagramming these in dot and most recently have switched to using PlantUML. Here are a couple of problems doing this in Perl:
Celebrate Intellectual Diversity
In Section
Seekers of Perl Wisdom
|
|