4 ms·
I think serializers would be better off as railways, allowing you to combine small serializers while also collecting the errors so you end up with a conclusive
by _v7gu 5y ago
I think serializers would be better off as railways, allowing you to combine small serializers while also collecting the errors so you end up with a conclusive outcome. Haskell's parser combinators are quite fun for example.
Also I've only used node/elixir serverside, but aren't http servers just a huge pipeline? It fits quite well into functional programming.
- bob1029 5y ago> aren't http servers just a huge pipeline Absolutely. At a certain level of abstraction they can be viewed in this way. How do HTTP servers actually get packets to and from the machine? At some point you have to interact with the operating system. This is not a realm where functional programming is very feasible today.