News for hackers. Stuff that matters.
Re:Inheritance versus Composition by zzzcpan on Thursday May 09, 2019 @08:48AM (#19867775)
> I learned pretty early that inheritance relations can be trivially refactored into a delegation based design

You can go much farther and discover that OO state mutations across multiple methods can be replaced with higher order functions that let you keep state mutations local, within context of each function. Suddenly OO becomes this weird very unproductive and error prone way of writing and reading code. An entire OO concept is just bad, always was, nothing can fix it.

At least with Javascript higher order programming was always possible.

Re:Inheritance versus Composition by yhdezalvarez on Thursday May 09, 2019 @12:57PM (#19869943)
What are you referring to? Could you give an small example (in JS or any other language)/links/for me to chew on?