Re:Introduction to Facebook's Flux architecture
by raziel2p on Monday February 23, 2015 @03:27PM
(#9096781)
Feels like yesterday I was told Object.create was the new best way to do this.
Re:Introduction to Facebook's Flux architecture
by jsnoble on Thursday February 26, 2015 @11:27AM
(#9113330)
The class in ES6 is just syntactic sugar over Object.create. Class is only coming out becuase most people wont learn that javascript has prototypal inheritance, and how to use it. Its a different mental model, in my opinion prototypal inheritance is more expressive and light weight than typical classes from other languages
assign(some newly allocated object, base class [, base class...], object with methods).
It seems to get around the funny stuff with new, prototypes and references.