Understanding Javascript OOP
killdream.github.com
Understanding Javascript OOP
1–10 of 23 posts
Re: Understanding Javascript OOP
#2There's a cool project, Harmonizr (https://github.com/jdiamond/harmonizr) which transpiles ES6 to ES5, which you can leverage to start using classes, modules, arrow syntax, etc. now. Demo: http://jdiamond.github.com/harmonizr/demo/demo.html
Re: Understanding Javascript OOP
#3The ES6 draft spec now includes the (maximally minimal) class spec that was hashed out at the July TC 39 meeting. You can read the spec here: http://wiki.ecmascript.org/doku.php?id=harmony:specification... and see some examples here: http://wiki.ecmascript.org/doku.php?id=strawman:maximally_mi... There's a cool project, Harmonizr ( https://github.com/jdiamond/harmonizr ) which transpiles ES6 to ES5, which you can lev…
Re: Understanding Javascript OOP
#4The ES6 draft spec now includes the (maximally minimal) class spec that was hashed out at the July TC 39 meeting. You can read the spec here: http://wiki.ecmascript.org/doku.php?id=harmony:specification... and see some examples here: http://wiki.ecmascript.org/doku.php?id=strawman:maximally_mi... There's a cool project, Harmonizr ( https://github.com/jdiamond/harmonizr ) which transpiles ES6 to ES5, which you can lev…
thank the lord, i can't imagine something as ubiquitous as javascript still has no syntactically intuitive class system
Re: Understanding Javascript OOP
#5Earlier quoted context omitted.
thank the lord, i can't imagine something as ubiquitous as javascript still has no syntactically intuitive class system
The MooTools library implements declarative class syntax for regular javascript: http://mootools.net/docs/core/Class/Class
Re: Understanding Javascript OOP
#6Re: Understanding Javascript OOP
#7Re: Understanding Javascript OOP
#8Re: Understanding Javascript OOP
#9Thanks for that. In my mind I've been calling C++, C#, etc. "class-based" programming since the design/programming phase is really focussed on classes. I've not much experience with prototype-based programming other than the occasional blurb. This is a nice intro.