Skip to content

Instantly share code, notes, and snippets.

@dbernar1
Created November 10, 2011 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbernar1/1356342 to your computer and use it in GitHub Desktop.
Save dbernar1/1356342 to your computer and use it in GitHub Desktop.
Why I like the opening brace to be on the next line
function do_something() {
do_it();
do_something_else();
}
function do_something_else()
{
do_it();
}
@dbernar1
Copy link
Author

Makes it easier for me to match the braces, and the first line of the function doesn't feel like it is butting up against the function def line. Perhaps it is just that I've been lookinf at the second version for long enough for the other to look lop-sided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment