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
-
negidrex2008yDepends on the programming language ahahaha. For swift I use the 1st one and for java the 2nd one.
-
xalez19378yusually put { on its own line, but with JS may be tempted to put it on the same line as the "if".
what I don't get is if we do
if(){
y not end it with
/*..last statement..*/; }
.. asymmetry is sad, and all curly brackets r born equal
What kind of people are you?
1. if () {…
Or
2. if()
{…
?
undefined