Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: The division of (class) labor in OOP

by hakkr (Chaplain)
on Jun 06, 2005 at 09:40 UTC ( [id://463858]=note: print w/replies, xml ) Need Help??


in reply to Re: The division of (class) labor in OOP
in thread The division of (class) labor in OOP

You should take a look at OO design patterns in general MVC is one of the main ones related to creating tiers/layers within your application. You'll find these problems/decisons are repeated in every project. If you are working in a team there can be big benefits in code standards by using a framework.

Tilly's advice is good, the priciple is to constantly ask yourself if you have chosen the correct objects(things).

Lookup 'software cohesion' also, the more you have discrete objects that can't be broken down into smaller entities the higher the cohesion of your design.

So if you look at User class source file and see code that is not directly related to an operation on a user then refactor it

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-03-29 01:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found