by bawolff · 1y ago · 0 comments
Otoh, missing ++, +=, ..= operators really bothers me.
But that's just personal taste, not objective by any means.
I love ++, but you know what? I was shocked when a co-worker pointed out that it is frowned upon to use ++ in javascript. It some big companies, their linter settings mark ++ as something that should be changed.
Appearently its really confusing if you put a bunch of newlines between the ++ operator and its ophand. No kidding.
From JavaScript: The Good Parts (May 2008):
> The ++ (increment) and -- (decrement) operators have been known to contribute to bad code by encouraging excessive trickiness. They are second only to faulty architecture in enabling viruses and other security menaces. The JSLint option plusplus allows the use of these operators.
Needless to say, I'm with you and hackthemack on this.