News for hackers. Stuff that matters.
Re:How to write untestable code by rincewind on Friday November 06, 2009 @06:53AM (#925853)
Greenlight if-branches and switch statements

OO cowboys will want to have a whole polymorphic soup of collaborating objects

Of Course! When I implement, say, Bubble Sort, I do not implement the classes BubbleList with the methods sort and addObject: anObject and BubbleObject with the method bubbleMaybe: aBubbleList, just to see my tests for BubbleObject fail when I switch to Quicksort.

There are no comments on this comment yet.