5 ms·
"Javascript code requires regular commenting in order to make it easily understandable." Or you could, you know, just make code that's understandable. I'm suc
by evanwalsh 15y ago
"Javascript code requires regular commenting in order to make it easily understandable."
Or you could, you know, just make code that's understandable.
I'm such an Internet jerk.
- Breefield 15y agoMy thoughts exactly. I mean, you should comment your code, but Javascript doesn't make me think of "regular" commenting.
- taitems 15y agoYou know what? I just noticed my team leader slipped that one in when he was proofing it. I might rewrite/remove that.
- thaumaturgy 15y agoI usually aim to make code that solves the problem it was intended to solve, as elegantly as possible. (Where elegance correlates closely to efficiency.) Whether it's understandable or not is completely secondary. Often this means that if I don't leave myself a reasonable comment about what I'm doing in that spot and why, I'll relearn the importance of good comments later.
- mattmanser 15y agoWhat you're describing is often considered to be bad code, not good code. Maintainability is quite often the most important thing when it comes to coding not terseness (which many do not consider to be elegant at all, quite the opposite, they see it as unnecessarily complicated and obtuse).
- lhnn 15y agoWhat you're describing is often considered to be good code. Maintainability is quite often the most important thing when it comes to coding. Cryptic code, though sometimes a tad bit harder to understand, is often preferable when it substantially increases the performance of the application. Short, descriptive comments do the rest of the work for the maintainer.