Class-based programming in JavaScript with inheritance (joii.harold.info) 7 points by haroldiedema 11y ago ↗ HN
[–] lightblade 11y ago ↗ I think we needed something that makes JavaScript's prototype inheritance more stand out. [–] haroldiedema 11y ago ↗ 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 11y ago ↗ 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.
[–] ericclemmons 11y ago ↗ Not sure why people are so readily negative, but I think this is a clever way to create class-like models with less boilerplate.Even in PHP I get tired of writing explicit getters/setters.
6 comments
[ 3.2 ms ] story [ 22.2 ms ] threadThis 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.
Even in PHP I get tired of writing explicit getters/setters.