Namespaces in jQuery
jQuery encourages using namespaces for methods in the $ namespace, like $.foo.bar() rather than $.bar(). This works for $ because methods don't expect this to refer to anything specific, and the way javascript works is to assign this to the last-named object, so in $.foo.bar(), this refers to $.foo. This idea fails for plugins, however, [...]


![The Annotated Sherlock Holmes: The Four Novels and the Fifty-Six Short Stories Complete [2-Volume Set, Illustrated with Drawings]](http://ecx.images-amazon.com/images/I/41524rKjPHL._SL75_.jpg)


