Digests » 163
Fancy a week in Barcelona? Would you like to hear about Distributed systems, new browser APIs, Machine Learning, WebXR, PWA or Cryptography? Then Full Stack Fest is for you! Get a 15% discount using the code ELIXIR.
Today I want to talk about GenStage. Although this behaviour was introduced a while ago in Elixir ecosystem not every developer has tried it out. And there is a bunch of questions that you’ll probably face while dealing with GenStage for the first time.
I started to learn Elixir programming language recently, and as a Pythonista I am liking the language a lot. While the syntax of Elixir is very different from Python, remembering more Ruby (the language that I current work with), Elixir have some of the same philosophy as Python, making it a very good choice for Pythonistas looking for their next language.
In this article, I'm showing how to use MOX library to simulate HTTPoison behavior and how properly mock HTTP client in your tests.
In Elixir if you need to write concurrent code, the GenServer module offers you lots of nice functions to handle the boilerplate it takes.
Here we have a simple application that lists a few different albums. We see we can view an album and edit an album. However, if we try to edit or view an album that doesn’t exist in the database, we’re directed back to our homepage along with a message.