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
-
Short hand assignments are just sugar syntax and are not available in all languages, say Lua
-
Orek12987ycount = count + 1 or count += 1 is definately better practise on javascript than count++ or ++count depending on douglas crockford's opinions
-
kidk657ycount = count + 1 feels more readable to me. Anything to reduce cognitive load while reading code.
-
@Orek meh. I take everyone's opinion with a grain of salt, and I don't get why people wouldn't like ++. It literally does one thing, increment. It does it in most languages, and it literally translates to a single statement in assembly.
-
DrEmann2537yThat's the problem with ++.. It doesn't just increment. It also returns the previous or new value.
I find statements such as, `count = count + 1` very annoying >_<
undefined