HNHacker News
TopNewBestAskShowJobs

haroldiedema

6 karma · joined January 21, 2014

submissionscomments
haroldiedema··on Class-based programming in JavaScript with inheritance
Agreed.

This library isn't meant to 'bash' on the prototype inheritance. It's purely meant as personal preference over prototyping. Especially for programmers coming from a Java or PHP background.

haroldiedema··on JOII: Simple object inheritance for JavaScript.
Built based on this: http://php.net/trait

Depending on the language, I think they're pretty much the same thing; implementation of (read: copy) functionality from a stateless object.