How To Test Asynchronous Text Changes with Hound and Phoenix

Writing asynchronous acceptance tests in Hound for Elixir and Phoenix can be difficult, especially if you are using a JavaScript framework like React, Vue.js, or Angular. If you have ever used end-to-end testing in your web application’s test suite, you have undoubtedly come across the issue of “flapping” tests. In many of the Ruby on Rails projects that I get asked to work on, I come...

How to Count Specific Items in a Collection with Elixir

So, I was working on this exercise over at Exercism.io, when I stumbled up an interesting function. To make a long story short, I needed a count of a specific character (codepoint) in a character list i.e. 'hello' contains two ls. However, this solution could apply to any collection which implements the Enumerable protocol in Elixir. I have been reading Programming in Elixir. The author, Dave...