Wednesday, October 25, 2006

Another good reason to give DRY serious consideration while writing code....

Another good reason to give DRY serious consideration while writing code....
 
"That there is wide spread belief in this myth is unfortunate because I have found that violating design principles or writing overly complex code is often the stumbling block to achieving good performance. In this case, not following DRY left the String concatenation operation and subsequent HashMap lookup scattered all throughout the application. This has two knock-on effects. The first being that any operation that is a bottleneck will be difficult to find as the scattering dilutes or hides the effect. The second is that if you are lucky enough to find that an operation is a bottleneck, you will be obliged to troll through the code looking for every instance of that operation." - Kirk - 2006-10-08 The Java Specialists' Newsletter [Issue 134] - DRY Performance -  http://www.javaspecialists.co.za/

1 comment:

Jason said...

Good read
Good read