News for hackers. Stuff that matters.
Re:My Biggest Regret as a Programmer by kabes on Wednesday April 06, 2016 @07:46AM (#11438083)
prototypes are actually a really good way to deal with inheritance.
Re:My Biggest Regret as a Programmer by cpburns2009 on Wednesday April 06, 2016 @10:28AM (#11438956)
Single inheritance is awfully limiting which is what Javascript's prototypes provide. And structurally copying multiple prototypes into a single object to achieve multiple inheritance is an awful hack.
Re:My Biggest Regret as a Programmer by Retra on Wednesday April 06, 2016 @08:04PM (#11443456)
Not having inheritance is also a pretty good way to deal with inheritance.