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
-
@rookiemaverick
if (statement)
{
doSomething ();
}
?
I think their complaining about coding styles and specifically indentation. -
so pretty much you guys are talking abt code formatting. I use select all and ctrl f to do that.
-
Slightly irrational over-reaction there. It's code style and it's utterly, totally, 100% opinion. Based on how you learned, what languages you use and what your group/team/company already has as their style guide.
-
Venom868yjust remove the { } since it's 1 instruction and it will be even cleaner.
If(cond)
dosh17(); -
@Venom Technically valid but so, so risky. I've never worked anywhere which allowed this style and I strongly advocate avoiding it. Make your natural instinct be to include the braces - reduces potential future bugs and IMHO improves readability.
people who write code like this actually give me heart palpitations. No it is not cleaner, you literally broke the block, it's disgusting.
if(statement)
{
doSomething();
}
undefined