The No.1 i-Technology Magazine in the World !
   
 
Clint Shank's Blog

Design



Law of Demeter and Unit Test Setup

30 Nov 2007 8:23 P GMT-05
Have you ever seen or even developed a long, complex setup method in JUnit? Maybe it was because the production code was violating the Law of Demeter. Here's another Robert Martin Craftsman style entry.

The Difference Between a Property, Field, Attribute

3 Aug 2007 9:05 A GMT-05
This blog entry attempts to clear up the confusion among the terms property, field, instance variable, and attribute.

How to Refactor Many Arguments

25 May 2007 6:01 A GMT-05
Ever have a constructor with 72 parameters? No, that wasn't a typo. How would you go about refactoring it? [...]

DBC Precondition/Postcondition Subclass Rules

12 Apr 2007 6:32 P GMT-05
Here's an analogy to explain the precondition and postcondition covariance and contravariance rules of design by contract (DBC) in an inheritance/implementation hierarchy. These rules support the Liskov substitution principle (LSP) [...]

Collection Utility Methods on the Object

16 Apr 2006 6:16 P GMT-05
When used judiciously, the technique of adding collection-related utility methods on an object has its benefits.

A Common Set of Test Refactorings

19 Feb 2006 8:02 A GMT-05
A set of low level Eclipse refactorings commonly used together when refactoring unit tests.

TDD Pattern: Tabular Tests

5 Feb 2006 2:23 P GMT-05
This entry discusses a controversial, yet practical technique for refactoring test methods into a concise specification of test cases for a production class method.

Coding By Intention

10 Jan 2006 12:56 P GMT-05
The technique of coding by intention (along with test-driven development) is the first step in crafting elegant software.