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
-
if(){
}
is a code word for devs with small dicks 😪
only big-dick devs use
if()
{
} -
@azuredivay hahahahahaha bro that was funny bro. Now go fuck yourself bro, you deserve it bro.
-
It’s a preference and the default style depends on the language.
Personally I don’t really care too much as long as it’s consistent within the project. -
Sorry I'm out here dealing with real software problems, come back to me when it's actually causing an issue
-
My brother in Christ, I'm sure you can find something more meaningful to die inside.
-
This is compulsory for C# devs.
For c++ it's optional
For JavaScript / TypeScript it's fucking mutiny on the high seas -
@AndroidJester speaking of C# devs, how about we capitalize MethodNames(), PropertyNames, ConstantNames and AnythingElse as well? 😂
-
KDSBest7711yI do the first and there is a reason for that:
A) MS Coding Standard for C#
B) Autoformatting VS
C) Clients Coding standard
D) Selecting a } marks the { and it has to be in the same indentation
E) I actually don't give a f*** about it but I want it consistent -
@KDSBest With 1tbs the formatter emphasizes this error by breaking the opening brace into a new line. With Allman, even after autoformatting the only difference between the correct and faulty code is the presence or absence of the semi.
-
KDSBest7711y@lorentz both scenarios my compiler throws a warning so I don't care about auto formater.
-
++ what others have said, it doesn't matter in the slightest as long as it's consistent within the project.
Now, when you're dealing with multiple projects, and each uses the other style... 😭😭
Related Rants
there is a dev in our company who actually does this:
if()
{
}
and not this:
if(){
}
This is unreal.
rant
dying inside