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

It's time for this terrible "Objects in the large, functions in the small" idea to be put to bed.

FP can do side-effects, asynchrony etc just fine, it's just about controlling them so you can still reason about your program and compose its elements easily.

Kay-style message-sending object graphs are neither modular nor composable; state & effects leak transitively by observation, and they cannot be recombined in self-similar patterns. Local reasoning is impossible.

We can talk about specific situations where say, Actors models might have pros and cons, but a blanket recommendation that "it's probably time for an object layer" is rubbish.

Why not design for composability and modularity top to bottom?



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

Search: