News for hackers. Stuff that matters.
Re:Learn Elixir with a Rubyist (IV) – Types, Data Structures... by davidw on Thursday January 19, 2017 @04:32PM (#13439685)
I find Erlang itself to be pretty easy to read and write, if a bit repetitive/verbose at times. There are not very many 'magical' things happening; it's all pretty clearly spelled out. Elixir is mostly an improvement on Erlang unless people are getting crazy with the macros.
Re:Learn Elixir with a Rubyist (IV) – Types, Data Structures... by bsuh on Thursday January 19, 2017 @05:49PM (#13440199)
While learning Elixir and Phoenix, I found Cowboy source code easier to read with no knowledge of Erlang other than what's inferred from learning Elixir than Phoenix's generated app scaffolding.

In Erlang, I look at 'module_name:function_name' I can simply open the module file and look at the function definition.

In Elixir, I had to ask "Was this function aliased?", "Is it imported from a module? Which module?", "Was it imported/aliased through a use statement?" The code was more concise, but harder to read IMO. Of course you can simply reference functions by their full name in Elixir as well, which is what I'm doing with my own code.

Re:Learn Elixir with a Rubyist (IV) – Types, Data Structures... by true_religion on Saturday January 21, 2017 @01:01AM (#13449063)
Phoenix tends to do .... interesting things with macros. It's not your typical Elixir application.

I find my IDE to be helpful in this situation, since all macros are compile time and thus can be unwrapped by the IDE.

Re:Learn Elixir with a Rubyist (IV) – Types, Data Structures... by bsuh on Saturday January 21, 2017 @04:11AM (#13449453)
What IDE do you use for Elixir? Thanks.
Re:Learn Elixir with a Rubyist (IV) – Types, Data Structures... by true_religion on Wednesday January 25, 2017 @10:01AM (#13481887)
I use IntelliJ and Atom. I'm actually still deciding which is better.