http://www.perlmonks.org?node_id=317555


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

Replies are listed 'Best First'.
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.