News for hackers. Stuff that matters.
Re:Introduction to Object-Oriented JavaScript by oldmanjay on Sunday May 10, 2015 @01:54PM (#9520702)
I know people are crying out for this, but I can only shudder inside at the unholy mudball messes that will result. Inheritance is one of those things we shouldn't let anyone use until they're 40 or so.
Re:Introduction to Object-Oriented JavaScript by leonatan on Sunday May 10, 2015 @01:58PM (#9520724)
Or, with great power comes great responsibility, and we shouldn't let uneducated and untrained quick-buck "developers" work on our software.
Re:Introduction to Object-Oriented JavaScript by Jweb_Guru on Sunday May 10, 2015 @02:18PM (#9520790)
Inheritance is barely ever necessary, or even important, for any software problem, real or imagined.
Re:Introduction to Object-Oriented JavaScript by oldmanjay on Sunday May 10, 2015 @02:00PM (#9520735)
Well to be fair to myself, I was mainly making a joke. But the simple truth is that inheritance doesn't bring new power to the table, just syntax sugar, and with great sugar comes diabetes and painful death.
Re:Introduction to Object-Oriented JavaScript by EugeneOZ on Sunday May 10, 2015 @03:00PM (#9520940)
Classes is a big enough portion of sugar to change expression level of code. After writing ES6 few months I don't like to write ES5 again, when I have to, and there is a lot of people who think so. Arrow functions is the another (if not first) big thing which makes this feeling stronger, and it's just a syntax sugar also. OO in ES5 looks less readable and less.. "native" than in ES6. Hope in some ES version 'this' insanity will be fixed and all will be just fine with classes.

just for note: I have never used "extends" in ES6.