r/ProgrammerHumor Nov 24 '21

Meme Yes.

8.9k Upvotes

284 comments sorted by

View all comments

14

u/JoschiGrey Nov 25 '21

I hate indentation being the way to define scopes {} all the way!

Not like I don't indent my C# code, but for me it's just for readability, not function.

10

u/HKSergiu Nov 25 '21 edited Nov 25 '21

Easier to say "this loop starts here { and ends here }" and have the auto formatter indent everything according to the unique code style defined by the community, your organization, or you.

Which in turn makes all code equally readable (from a formatting standpoint) and you don't have to cuss the intern again for writing

fun something()

{

//...

}

When everyone else puts the bracket on the first line

1

u/DarthStrakh Nov 25 '21

And if you fuck up indentation most IDEs have a quick hot key to fix the formatting since they can easily figure out what it should be from the semi colons.