News for hackers. Stuff that matters.
Re:Front End Development Guidelines by evanwalsh on Thursday May 05, 2011 @11:26PM (#2519885)
"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.

Re:Front End Development Guidelines by taitems on Thursday May 05, 2011 @11:30PM (#2519893)
You know what? I just noticed my team leader slipped that one in when he was proofing it. I might rewrite/remove that.
Re:Front End Development Guidelines by thaumaturgy on Friday May 06, 2011 @01:39AM (#2520111)
I 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.

Re:Front End Development Guidelines by mattmanser on Friday May 06, 2011 @10:08AM (#2520947)
What 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).

Re:Front End Development Guidelines by lhnn on Friday May 06, 2011 @11:51AM (#2521282)
What 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.
Re:Front End Development Guidelines by Breefield on Thursday May 05, 2011 @11:29PM (#2519892)
My thoughts exactly.

I mean, you should comment your code, but Javascript doesn't make me think of "regular" commenting.