Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



What are you referring to? Could you give an small example (in JS or any other language)/links/for me to chew on?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: