I'm a fan of Revealing Module Pattern:
I find that this is easy (for me) to read, explicitly defines the "public" vs "private" methods, doesn't have any impact to calling methods and usually lets you skip dropping 'this's all over the place.
Code:
var MyModule = (function() {
// "private" variable -- inaccessible outside of the closure
var skipText = "skipping";
// "private" method -- not exported in the return statement below
function privateSkip() {
return skipText;
}
function dance() {
return "dancing";
}
function skip() {
// Call a "private" method in the closure
return privateSkip();
}
return {
dance: dance,
skip: skip
};
})();
I find that this is easy (for me) to read, explicitly defines the "public" vs "private" methods, doesn't have any impact to calling methods and usually lets you skip dropping 'this's all over the place.