Random Scala Tip #624: The Pitfalls of Option Blindness
Given this class:
case class User(
id: UserId,
email: Option[Email],
address: Option[Address],
posts: Option[List[Post]],
lastLogin: Option[Timestamp])
What does Option on each of the fields actually means?
Well, after spending hours diggi...
ncreep.hashnode.dev6 min read
Alex Boisvert
Good post! JSON support, as well as database binding are often the top things that stop me for building a more semantically-precise domain model.
Next is probably dealing with backward compatibility once you realize you didn't have the right semantic model in the first place...