Skip to content

Instantly share code, notes, and snippets.

@aconbere
Forked from mde/gist:371696
Created April 19, 2010 22:01
Show Gist options
  • Select an option

  • Save aconbere/371707 to your computer and use it in GitHub Desktop.

Select an option

Save aconbere/371707 to your computer and use it in GitHub Desktop.
// If foo is true, then we do all this stuff
if (foo) {
// Do foo stuff
}
// This is the stuff that happens in the else case
// but now I'm going to keep writing
// and eventually this else will move further
// and further down the page
// and at somepoint, it wont seem logically connected
// to the if at all.
//
// In fact... I'll have to scroll up the page and look
// for the appropriate if that matches this condition
// in the first place.
//
// If I moved this comment /into/ the else
// I'll always know where the initial condition is.
else {
// asdf here is 'QWER' because we like it
var asdf = 'QWER';
// zoobie ... well, what to say about zoobie
var zoobie = 'FRANG';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment