I think this points to a large problem in our society is how we train and pick our managers. Oh wait we don’t. They pick us.
I think this points to a large problem in our society is how we train and pick our managers. Oh wait we don’t. They pick us.
If a TODO passes code review, more than one person fucked up.
Generally, you can replace some comments with variable names or comment names. Which means you must already be in the habbit of extracting methods, setting new variables to use appropriate names, and limit context to reduce the name (Smaller classes and methods means shorter names can be just as expressive, because the context is clearer). It lowers the number of wtfs per minute you get reading code before you even need whole sentences to explain why things are done in a certain way, because the names can be a powerful hint.
But realistically, you end up needing comments for some things anyways.
Except that instead of an authoritarian government using it to totally control the learned populace, they are showing you ads.
We’ve still got a way to go before 1984. If it did happen, you wouldn’t be able to discuss it.
It has a rocky start, and a lot of cruft from that era sticked around.
There are also a lot of horrible legacy projects from the pre-ES5 era which are a pain to work with. Often older projects were coded either before people knew how to do javascript right, or before the devs who wrote it knew how to write javascript right.
I think this depends on the crowd. Unfortunately, the intelligent crowd and the crowd with money and power is not exactly the same. Though hopefully there is overlap.