3 ms·
Getting hang of functional programming takes time. Writing code elixir way requires unlearning what you have learning from imperative languages.
by bluevlah 5y ago
Getting hang of functional programming takes time. Writing code elixir way requires unlearning what you have learning from imperative languages.
- cerved 5y ago> Scala Scala isn't exactly an imperative language. If anything it's the actor model isn't exactly easy to wrap your head around
- bluevlah 5y ago> Java, Python I was talking more about Java/Python. Also Scala has inheritance and OOP. Which don’t exist in elixir has only map.Map + additional field is struct in elixir. Function capture, enumerations, pattern matching, implicit return and tuples returning status is what confuses new people. Most try to implement some kind of inheritance in elixir. Actor model is in OTP. Process, supervison, actor and messages are concepts of OTP. Elixir does not have actor in in its language constructs. There is no replacement/alternative for OTP if you want distributed systems. Many tried to reimplement Erlang in their languages and failed miserably.
- Jamustico 5y agoI've used ocaml in the past and I not new to functional programming, but the whole Phoenix framework is somewhat confusing.