I notice some people declare all their vars up front in the function as a reminder that of function scope -- ymmv, I dunno if that's a good idea or not.