News for hackers. Stuff that matters.
Re:A summary of ECMAScript 6 features by z3t4 on Wednesday February 18, 2015 @04:24AM (#9067656)
I prefer document.getElementById("myKitten") because it's easier to read and more describing then just $("#myKitten")

If it's too long to type, and you use it often, make a macro for it. When naming stuff, keep it short and simple though.

Also, you shouldn't hide logic behind names. I was actually wrong about evens.map(v => v + 1); If that's what you want to do, then write that. It's a thin line though, it might be hard to know what "v" is in that context.

There are no comments on this comment yet.