In his excellent book, Beginning Scala, David Pollak provides a series of statements that can be considered as a recipe for avoiding the use of null values in your Scala code. I've organized his statements here in the following three sections.
1) General rules about null and Option
We begin with the following general rules regarding the use of null values in Scala code: