Category – SoftwareDesign
2 posts tagged with "SoftwareDesign" (See all categories)

OOption vs Either (Part 2)

06/24/20192 Min Read — In SoftwareDesign

In the first post of this trilogy, I introduced Scala's Option type and why I prefer it over null . This post is all about another Scala monad called Either . Motivation Let's build a little…

OOption vs Either (Part 1)

06/20/20191 Min Read — In SoftwareDesign

The last days I paired with Lewis, a former apprentice, to refactor some functions in a Scala codebase. By doing this, we decided to refactor the return type of some functions from Option to Either…