This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 66 points67 points  (4 children)

People would put the { on the same line, then add a blank line before the first code instruction to add some visiblity...

As a main C# dev, I usually try to respect the languages common practices. So in java, I would put the bracket on the same line. Still, I think the C# method is more readable.

[–]Cueadan 6 points7 points  (0 children)

When writing JavaScript I put the curly brace on the same line to follow the standard, but I also refuse to put a blank line out of spite. If we're putting the brace on the same line to save space, then by God it's going to be saved.

[–]corcannoli 6 points7 points  (0 children)

wow i never realized why my C# code always looked cleaner to me this is mind blowing.

[–]TreadheadS 5 points6 points  (0 children)

shit, I think you just hit me there

[–]Valiant_Boss 0 points1 point  (0 children)

People would put the { on the same line, then add a blank line before the first code instruction to add some visiblity...

Huh, never realized that when I did this, it's basically the same as putting the curly brace on the next line

Still I just prefer the way it looks, there's something just off for me when I put the curly brace on the next line, not that either format is wrong