JavaScript Refactoring

Refactoring can be used as an excuse for costly and long rewrites. Such practices earned it a bad name, but refactoring is in fact something very different from rewriting. In my talk at Front-Trends 2012 I explained this difference and demonstrated few refactorings that will immediately improve the quality of your JavaScript code.