rwldrn/idiomatic.js — pull request #70 by jimmyhchan (2012-07-03 16:37:01+00:00)
Title: Naming Booleans and the good parts of Hungarian Notation

Added comment on good Boolean variable names.

Also a discussion on Hungarian Notation
Most developers currently actively avoid using Hungarian Notation. Few developers enjoy that Hungarian code smell, but it's only really smelly when full Hungarian Notation is adopted.

We should strike some balance and take the good parts that we have already adopted:
regex -- prefixing with r
private/protected variables -- prefixing with underscore
jQuery wrapped objects -- prefixing with $
...more?

In my opinion, documenting the variable type should generally be done using JSDoc comments, but the examples above are so well known that it makes more sense to follow convention.