Elixir in Action was written in 2015, and since then a lot is changed, so if I am using this book today with Elixir 1.5.2, what should I keep in mind.
@sasajuric, the writer of this book wrote a blog post about compatibility of the book with Elixir version 1.2. He mentioned the major deprecations like HashDict and HashSet. I think the book should work with the new version of elixir, but only keep in mind to use Maps instead of HashDict and MapSet instead of HashSet. Please also read that post.
The setup for supervisor children has changed with elixir 1.5 deprecating the old. For more info on that search for child_spec
.
@pillaiindu a good point to be noted, it’s not mentioned in the blog post Elixir 1.2 and Elixir in Action by @sasajuric as that post was written before this change.
There should be an update of EIA coming in 2018.
this looks like a big change, is there some detailed post etc about it?
Here’s the quick primer on why/how: https://elixir-lang.github.io/blog/2017/07/25/elixir-v1-5-0-released/
And this is the more in detail one: https://hexdocs.pm/elixir/master/Supervisor.html#content
Thanks everyone for responding. Just to confirm, yes the biggest deprecations I’m currently aware of are HashSet
and childspecs. I’ve already started working on the updated version, which I expect to finish by mid March 2018.
EDIT: one more change I forgot to mention is the addition of Registry, which means you don’t have to use :gproc
anymore.
No MEAP?
There will be MEAP of course, but not exactly sure when. Stay tuned for updates