Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Object Oriented Orientation

by bluescreen (Friar)
on Aug 01, 2011 at 18:48 UTC ( [id://917899]=note: print w/replies, xml ) Need Help??


in reply to Object Oriented Orientation

IMHO, you can learn objects in any language but don't stop there go and see other languages too. All the implementations differ from each other and each one of them impose different constrains. i.e. Barebones Perl5 ( no Moose ) doesn't have attribute introspection or distinction between class/instance methods. Java on the other side doesn't support Multiple-Inheritance and you can't add attributes on the fly ( you can do that in Perl ).

Learning objects is something that is not easy at all, it a shift in the way you see things. And usually I see the following pitfalls with people learning objects

  • Gigantic methods
  • Copy & Paste code among different classes
  • Poor cohesion
  • A depth inheritance tree

The point is that it is common - specially when you start with a new paradigm - to try to do things in the old way ( and maybe not the most efficient way in the new paradigm ) so you might feel frustrated but don't worry it's just a matter of time and learning

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-26 03:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found