Tuesday, September 07, 2010
  Login      Register
Blogs   Search
Blog Minimize
 
 Print   
 
Blog Minimize
 
 Print   
 
Blog Minimize
 
Mar 22

Written by: Rob Park
Sunday, March 22, 2009

Simple requires discipline and courage.
 
Just implementing some feature without tests and without really considering the class responsibilities involved… that’s easy… well for a little while anyway. However, being disciplined to test-drive your change in and then refactor mercilessly for single responsibility, removing duplication, etc that’s how you keep your design simple.
 
Just exposing your class’s data and then reaching into it further, violating the Law of Demeter, that’s easy. However, being disciplined to recognize you have some inappropriate touching going on and instead at least encapsulating that into tested methods will help keep your design simple.
 
Even then, if you do recognize for example a class is too big, just taking some of it (hopefully related pieces) and putting them in dependent classes can be easy. However, ensuring that you do so without creating a nest of intertwined dependencies, required to keep it simple, isn’t necessarily easy.
 
I am interested in simple designs and disciplined approaches to keep a design emerging simply. I am also interested how to better influence others to do the same.

Tags:
  
 
Home Articles Blogs Books
Copyright 2007-2008 by Luke Lanphear & Rob Park
Terms Of Use | Privacy Statement