State machines as business logic engines
Source: Dev.to
Introduction
Throughout my years of web development with Elixir and Phoenix, I have often struggled with how to handle business logic, particularly when it comes to status changes. I believe web features are inherently simple; almost everything has been done before. But they can become complex because of the tho…