Yes, I agree with the upsides to declaring variables at the top.<p>However, declaring variables close to where they use is a different kind of &quot;cohesion&quot;, since it&#x27;s keeping related things together -- just related in a different way.<p>I see your point, but it&#x27;s still a matter of taste.