Refactoring

These refactoring examples are drawn from or heavily influenced by Martin Fowler's book Refactoring: Improving the Design of Existing Code.

Fowler also has an online catalog of refactorings (each example below will link to the relevant entry).

Simplifying Conditional Expressions