Have you ever found a bug in your LiveView code because your app somehow had invalid and incoherent state?
“Your total is -$500.”
“Your return flight is .”
“The temperature is -600°F.”
When programming user interfaces, it’s important that we do not display inconsistent states to our users. But how can we prevent those bugs?
By making those invalid states impossible to represent!
Join me as we walk through a LiveView example that has bugs because of invalid states. As we fix them, you’ll learn to model domains in a way that makes rendering invalid states impossible. Your users and your future self will thank you.