====== Refactor ====== Refactor is not only a submenu in your IDE. It's a verb. After design patterns, there now is a catalog of refactor-patterns. This one is both hilarious as true, [[http://www.refactoring.com/catalog/inlineTemp.html|Inline Temp]]: decimal basePrice = anOrder.basePrice(); return basePrice > 1000m; becomes return anOrder.basePrice() > 1000m; {{tag>csharp aspx javascript}} ~~DISCUSSION~~