Harness your Python instincts to write good Javascript

added by JavaScript Kicks
10/24/2014 3:06:19 PM

123 Views

Javascript’s closures give you access to some interesting programming patterns. Foremost among them, it lets you implement Python-style classes, with the added bonus of private variables and functions. And this is not just an academic gimmick that risks complicating your code in the real world: it is championed by the people who develop javascript, and it is used by jQuery and D3 among others. It helps you to write good, reusable code.


0 comments