3 ms·
> my limited time to commit to it and being fairly different from OOP If it helps, you can think of Elixir/Erlang as extreme OOP with processes as objects. Obj
by rdtsc 10y ago
> my limited time to commit to it and being fairly different from OOP
If it helps, you can think of Elixir/Erlang as extreme OOP with processes as objects. Objects are truly isolated and won't break each other by overwriting each others' memory. They communicate only by messages. Inheritance doesn't work there as well. Composition is different. Perhaps supervision hierarchies provide that.
In general I found learning Erlang that I became a better programmer in other languages as well (Python, C and others). I think more about passing state around and making it explicit. Using functions more than deep class hierarchies. I often find it makes the code more modular, debuggable and testable.