Tag Archives: Design

Scala Best Practices : Pure Functions

We grew up in a world of imperative programming that’s why we are more addictive to writing code in imperative style. Everything is mutable around us. Mutability is not that bad. But shared mutability is devil’s work. The moment we … Continue reading

Posted in Scala, Tutorial | Tagged , , , | 1 Comment

Partial Functions and Modularizing Actor Receive blocks

A partial function is defined as It is a unary function which defines a domain. Not all values of A would be a part of the domain. For instance, in the following code block The odd values of A would … Continue reading

Posted in Architecture, Scala | Tagged , , , | 1 Comment