“I agree with Brandon that a line with a bracket is a LineOfCode, except for python ;-)”
There’s no reason a line containing only a bracket should be counted as a line of code. As an example, say you’re using LOC counts as efficiency, so a lower LOC reflects a more efficient programmer. If you’re counting “brace lines”, then a programmer may change his style to show a greater efficiency.
Example:
if(condition)
{
DoSomething();
DoSomethingElse();
}
Counting brace lines, that snippet contains five LOC. Assuming indentation(which I don’t know how to force in these comments :P), this code is very readable.
Now, we can reduce that snippet to three LOC, just by keeping braces on the same line, like so:
if(condition){
DoSomething();
DoSomethingElse(); }
You lose readability by doing this(IMO), but reduce your total LOC. However, the main point is that they do the same thing, despite where you place the braces. Since they do the same exact thing, why should a programmer be punished(or rewarded in some cases) for making more readable code.
Of course, all of this can be resolved by implementing and enforcing coding standards at your company, but this is about as rare as code reviews.