As you know, I have a thing about conditional code. Most conditionals are duplicates, and the only “genuine” conditionals are at the system boundaries, where they test external state and input information. But I discovered recently that, even at the edges, not every conditional is necessary… Here’s (a drastically simplified version of) some code I… [Read more…]
A refactoring anti-pattern
I now have Simian in Eclipse, but my search for the right tool continues
Why is it sometimes easier to comment out a test than to get it to pass?
I'm looking for a tool that will report duplicated expressions in source code
Alistair Cockburn's 'hexagonal architecture' has some interesting consequences when we try to eliminate all duplication from a system
There are two kinds of conditional statements in a system; and one kind is redundant
You are tempted to create a method with a boolean argument. Don't.
September 19, 2011
0