Digests » 185
We need to process a large CSV file of minute by minute volume and prices. Our task is pretty simple: we just want to get the first line of the year 2015, with valid data. At first, this seems an easy task we could tackle with String.split, Enum.map/filter/find. But what happens when the CSV file is large?
The question of "Which Programming Language" is one we ask ourselves fairly regularly, and is the reason that lead us to discover and decide on using Elixir in 2016. We periodically survey the "up-and-coming" languages like Kotlin, Julia, Lua, etc. and keep concluding that our choice of Elixir is the one we would make again right now. Elixir is the "full package" from idea to deployment!
If you are new to phoenix and are coming from a framework like rails the context can sometimes throw you off a little bit specifically when it comes to the boundaries of your controller. I will use this very blog as an example of how you can still use your controller to help express how you want your context to behave. So say you have a blog such as this. Your posts have a comment section which means you will need to preload the comments on your show controller.
I recently had the pleasure to read “Functional Web Development with Elixir, OTP, and Phoenix” by Lance Halvorsen. As a fan of Elixir and Phoenix, I thought I should take some time to write a constructive review of the book so that others who are looking for a good book on this very topic can choose for themselves.