der kl@mmeraffe | ruby. java. development.

a developers guide to the world of code

Friday, July 07, 2006

Pattern: Good Citizen

Every good OO-Developer knews: couple your objects as loose as possible, I already mentioned a popular IOC-Container (PicoContainter, article)
Dan North and Aslak Hellesoy defined the pattern "Good Citizen", you can check it out at the PicoContainer-Homepage. It sets some Rules for "well designed" classes, like the Dependency Injection Pattern which is the basis for all the IOC-Frameworks out there.
Maybe not all the rules are my cup of tea (like the one with seperately defined return values like StringList.EMPY), but nevertheless, if everybody would only write "Good Citizens", there would be less headache for the everyday life of a developer...

to the Pattern@codehaus.org

add to del.icio.us | submit to digg | submit to reddit

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home