3 ms·
State management by process-directed messages is a really neat way to avoid throwing oneself under the OOP bus. Furthermore, Elixir has Agent, a higher abstrac
by jxub 8y ago
State management by process-directed messages is a really neat way to avoid throwing oneself under the OOP bus.
Furthermore, Elixir has Agent, a higher abstraction on top of Erlang/OTP gen_server that's easier to grok and use in many simple cases with no need to separate the public interface and OTP callbacks.