Scoping your method locals: Neat programming trick.
It’s a fairly common programming maxim that you should not let your methods grow too large. If that happens, the maxim generally suggests you split up your behemoth method by spinning off parts of it into their own ‘helper’ methods.
I agree to the maxim, but I never really liked the solution. Helper methods are awkward; [...]