A common requirement is to call various APIs in a sequence, any of which may fail. We see how to implement this requirement in a clean way using monads....
We recently completed a small video demonstrating how to clean up an ugly set of if-else conditionals by refactoring it to use polymorphism instead. All the while we use pytest as a safety net to catch errors....
In this exercise we are going to solve a variation of the robot kata. This version is called the Lost Robot kata....
After PyCon US 2022, it's time for another big python conference: EuroPython. As before, we are live tweeting threads on the different sessions from the conference. All those tweets are collected on this page. Enjoy!...
Monads have a reputation as being a very complicated aspect of functional programming. In this article we demystify them and learn how to apply monads in our code...
Here we implement the robot kata in a functional programming style...