Monthly Archives: October 2008

>HyperLink Detector Unit Testing

> Three Laws of Test Driven Development: You may not write production code until have a written a failing unit test. You may not write more of a unit test that is sufficient to fail, and not compiling is failing. … Continue reading

Posted in eclipse, refactoring, xml | 2 Comments

>Replace with MAP

>In Part I, II, and III of the Replace Nested Conditional with Guard Clause series of posts. Several readers pointed out that the refactoring could be done with a MAP instead of a series of if then else statements. Since … Continue reading

Posted in eclipse, refactoring, xml | 6 Comments

>Part III: Replace Nested Conditionals with Guard Clause

>AlBlue asked a simple question, what my aversion to if then else constructs is. It isn’t so much an aversion but the abuse of it. First let me say I’m a jack of all trades, I’ve programmed in C, C++, … Continue reading

Posted in eclipse, xml | 5 Comments

>Michael Kay on Software Patents

>Quote of the Day: I write software because it’s a creative activity that I enjoy, and I will continue to do so until the lawyers stop me. -Michael Kay, Oct 2 2008“Software Patents” Michael is one of the guys I … Continue reading

Posted in eclipse, xml | Leave a comment

>Part II: Replace Nested Condition with Guard Clause

>Seems the posting I made yesterday stirred a bit of debate whether the code was more readable. First let me state, that yes I agree that .equals probably should be used, but that isn’t what was done, and I was … Continue reading

Posted in eclipse, refactoring, xml | 8 Comments

>Replace Nested Condition with Guard Clauses

>In Martin Fowler’s refactoring book and the online Catalog of Refactorings, one of the items is called, “Replace Nested Conditions with Guard Clauses”. The following code is sorta a hybrid, and is something I’ve seen in eclipse methods from time … Continue reading

Posted in eclipse, refactoring, xml | 8 Comments