Comment
Comment by aleem
Refactoring is fun, especially on a slow day. The "Introducing an Explaining Variable"[1] refactoring is:
is better written as
This allows variable IE8 to be (1) reused later on in the code, (2) is self documenting and (3) sets a precedent for extending it easily by future devs:
Another quick one is Guard Clauses[2].
where either block is long, is better written as
This site http://sourcemaking.com/refactoring is worth a read even if you have been programming for years; especially if you have been programming for years and haven't developed good habits.