4 ms·
I come from a javascript/python background, you might want to take a look at the Phoenix web framework[1], as it will give you a good introduction into the lang
by untothebreach 12y ago
I come from a javascript/python background, you might want to take a look at the Phoenix web framework[1], as it will give you a good introduction into the language, but also introduce some new concepts (OTP-wise) that will help you think more "elixir-y" (or "erlang-y").
One thing I constantly keep in mind when programming in Elixir is that, using it in the same way you would use Python is a waste. For example, when I use Python, I'm not typically thinking of concurrency (outside of, "how many gunicorn workers will I need?"), because of the situation with concurrency in Python. Using Elixir (or Erlang), you really aren't taking full advantage of the language/runtime/VM if you don't take concurrency into account. If all you want to do is a little string munging, you can do it in Elixir, but it is probably not the best tool for the job.
The Mix & OTP guides available on elixir-lang.org are great, but if you want more information on OTP, the OTP chapters in "Learn you some Erlang"[2] are wonderful. You will have to do some translation from Erlang syntax to Elixir, but it is a great way to learn how to think concurrency.
1: https://github.com/phoenixframework/phoenix https://github.com/phoenixframework/phoenix
2: http://learnyousomeerlang.com/content http://learnyousomeerlang.com/content
- mkohlmyr 12y agoPoint well taken as far as concurrency, really reading up on GIL along with working a lot with SOA is part of what is informing my desire to find a more appropriate language. I want to become more proficient in developing web services that scale, as well as expanding my mind somewhat by working with a different model / from a different perspective. I will have a look at the links, for sure. Thanks!