R7k_red_large
R7k_red_large

Private Languages in Code

Michael Feathers
December 10, 2013

There are many ways of writing incomprehensible code. Most of us have tried many, but every once in a while I see a new one.

About a year ago, I looked at a large method that set a series of boolean flags up at the top and referred to them about 300 lines further along in its body. It's easy to look at this and say that the root cause is . . .

Read More

When A Method Can Do Nothing

Michael Feathers
November 18, 2013

Refactoring is full of choices. When I start to work on a large method I look at its overall structure and try to get a sense of how to break it down. Conditional statements are often problematic for me.

 if (...) { ... } 

When I have an if-statement like this I know that I have a choice. I can extract the if and its associated block into a . . .

Read More

Archive
  Subscribe by Email and Never Miss a Post