Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Often Overlooked OO Programming Guidelines

by Anonymous Monk
on Dec 29, 2003 at 21:20 UTC ( #317555=note: print w/ replies, xml ) Need Help??


in reply to Often Overlooked OO Programming Guidelines

If I might add one more observation: Don't think about classes (at all) when doing domain modelling! Classes are a structural element of the code not an element of the problem domain. Just think about the objects (what they need to do, what they need to know). Thinking 'classes' too early subverts object-oriented design into class-oriented design, and the result is highly stuctured code (often with deep hierarchies) that doesn't map well to the problem space.


Comment on Re: Often Overlooked OO Programming Guidelines
Re: Re: Often Overlooked OO Programming Guidelines
by Ovid (Cardinal) on Dec 29, 2003 at 23:35 UTC

    You know, that has to be one of the most intelligent comments I've heard about OO programming.

    Cheers,
    Ovid

    New address of my CGI Course.

Re: Re: Often Overlooked OO Programming Guidelines
by Roger (Parson) on Dec 29, 2003 at 23:45 UTC
    The purpose of programming. Roger seconds Ovid's comment.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2014-09-20 21:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (163 votes), past polls