Connecting...

Image 2021 06 08 T09 31 38

A few tips on modelling things in Scala

Image 2021 06 08 T09 31 38
If you are in need of a few simple and easy tips to implement when writing models in Scala or have ever wanted to know the answer to any of the questions below, then this talk by Mateusz Kubuszok is for you!
  • How can I compare entities from DDD if case classes always compare all fields?

  • Do I have to give up on non-flat models if my persistence implementation doesn’t like them?

  • Do I have to pollute my models with annotations and implicits used by e.g. JSON serialization libraries?

  • If I want to use things like Scala newtype or Refined, do I really have to several imports in every file that uses them?

  • If I am dedicated used o Cats who uses import cats.implicits._ everywhere, do I really have to import it in every single file?

  • Does it always have to be so painful to update nested immutable model or to transform one object into another?

Some programmers take these for granted, while a lot of them still struggle with writing repetitive or needlessly complex code. This talk will help you go from the later to the former.

​Thank you to Mateusz Kubuszok for sharing his tips with us at Scala Love in the City 2021, you can check up all of the upcoming Scala in the City events here!