Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
setyadi7318yThis is what happens when you pay devs by code quantity. 😁
Anyway, that opening curly braces.. 😐😓😢 -
Assuming this is Java I'm afraid this is one of those "how has this ever worked" type of moment
-
BoomeH21208y@daarkfall It's C#, they have bools instead of booleans. But yeah, otherwise a reference comparison wouldn't be beneficial ;)
-
psudo3408y@dennie170 It's also is with the C family. That said with Java and I think Go it is common to put the opening brace on the same line as the declaration.
-
uxmedic2158yThe opening bracket is just where it's supposed to be if you follow the defacto C# standard written by Juval Löwy. To not turn this into a bracket war, I don't care where you put yours as long as you follow a standard. I chose the defacto, and it's working well for us.
-
Opening brackets are in correct position for C#. It's the whole method which is useless when we have string.Equal() and many more built-in helpers.
Related Rants
I've taken over a project with legacy code, this is one of the methods:
private bool areEqual(string value1, string value2)
{
return value1 == value2;
}
Also, the opening brackets are on a new line
undefined
god why