News for hackers. Stuff that matters.
Re:Front End Development Guidelines by taitems on Thursday May 05, 2011 @08:46PM (#2519562)
I'll put my hand up for that mistake. I think the word I was looking for was "redundant", and not "ambiguous". Following the other concept of prefixing your booleans with "can" "has" and "is", your variable names should be self explanatory.

if (isSelectable === true) { ... }

versus:

if (isSelectable) { ... }

It's a shorthand method, similar to why you would use int++; instead of int = int + 1;

Re:Front End Development Guidelines by joeyespo on Thursday May 05, 2011 @10:34PM (#2519785)
I was just wondering the same thing. Thought there was some magic javascript concept I somehow missed. Glad you answered!

Good article, bookmarked it for reference/a checklist.