Poll time! Where do you put the opening curly brace, and why?
On the same line
Or on a new line?
As for me, I generally prefer it on a new line, it makes it easier to read and scan through the code. I had a professor in college who insisted it be placed on a new line. However in the "real world" I see it more on the same line.
On the same line
Code:
if (something) {
// blah
}
Or on a new line?
Code:
if (something)
{
// blah
}
As for me, I generally prefer it on a new line, it makes it easier to read and scan through the code. I had a professor in college who insisted it be placed on a new line. However in the "real world" I see it more on the same line.