Hacker News new | past | comments | ask | show | jobs | submit login

Unfortunately most people seem to think OO happens to be best at the things they're already used to using OO with for historical reason.



Unfortunately, many people seem to think FP is the hot new thing and OOP is already over; they ignore that OOP happens to be a great way to structure code that focuses on naturalism, while FP forces math-like structuring.

There is massive fad-like interest in FP right now, especially in academia.


And vice versa.


I don't see the vice versa in academia at all. Where is this OOP hype that you think exists? Even OOPSLA changed its name to SPLASH to de-emphasize objects.


You said especially in academia. I just meant that OOP is fad-like, too.


FP is quite useful, the fad I'm referring to is "let's make everything immutable" and "let's just use functions to structure our code." This ignores what FP is good at and how it doesn't really compete with OOP in terms of problem space: OOP is basically modelling based on how we think and talk about things (kingdom of nouns), FP works great for more abstract math-based concepts (kingdom of verbs). Immutability solves one problem (consistency) that has other real solutions as well (dependency propagation).

There is still a lot of work to do on objects to not make them suck, just like there is still a lot of work to do with functions. My ax-to-grind revolves around work on objects being neglected in favor of a fixation on functions.




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

Search: