linkedin/idiomatic.js — pull request #3 by jimmyhchan (2012-07-12 17:54:14+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.