Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^5: I dislike object-oriented programming in general

by tilly (Archbishop)
on Oct 21, 2007 at 21:14 UTC ( [id://646317]=note: print w/replies, xml ) Need Help??


in reply to Re^4: I dislike object-oriented programming in general
in thread I dislike object-oriented programming in general

Cleaner is in the eye of the beholder.

Personally I think that it makes a lot of sense to have a clear distinction between class methods and object methods. For instance it is obvious that a class called File should do things like open files and return the associated object. But it makes no sense to me to ask a file object to open other files. But that means that a file object should not inherit from File. In which case the natural implementation is to have a prototypical file which has no real file associated with it. Which "feels" wrong to me.

But different strokes for different folks. In the end either object model works.

  • Comment on Re^5: I dislike object-oriented programming in general

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-26 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found