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

The historical win of OO was polymorphism. The competition to OO was procedural code that consist(s|ed) of hardwired procedure calls. Enter polymorphism, which provides a way to abstract over functions, not only over values. Of course, this is nothing new to functional programming where functions are first class citizens, but it's new for procedural programming. Modern OO is about stateless objects, dependency injection and unit testing, aka functional programming.


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

Search: