May 2018
Intermediate to advanced
412 pages
9h 3m
English
Earlier I said that what Elixir calls an application, most people would call a component or a service. That’s certainly what our sequence server is: a freestanding chunk of code that enjoyed generating successive numbers.
Despite being the canonical way of writing this, I don’t like my implementation. It puts three things into a single source file:
Have another look at the code here. If you didn’t know what it did, how would you find out? Where’s the code that does the component’s logic? (The image gives you a hint.) It isn’t obvious, and this is just a trivial service. Imagine working with a really complex one, with lots ...
Read now
Unlock full access