I like pretty much everything here, from two-spaces a tab to only function expressions assigned to vars. Also like the no multi-var statements.
Only gripes here is I prefer module patterns which enforce variable privacy over private variable Hungarian notation and I strongly prefer that or self over _this. Overall, good find.
This guide was clearly made for the actual current state of js sans polyfills. There are a number of techniques they prefer because of old ie compatibility.
Polyfills are hacks that add weight to the page, not good solutions. They also make code less portable since they require a compatibility layer. I can see why they would want to avoid them.
0
u/wreckedadvent Yavascript Mar 27 '15 edited Mar 27 '15
I like pretty much everything here, from two-spaces a tab to only function expressions assigned to
vars. Also like the no multi-varstatements.Only gripes here is I prefer module patterns which enforce variable privacy over private variable Hungarian notation and I strongly prefer
thatorselfover_this. Overall, good find.