Type Classes

Type Classes

Share this post

Type Classes
Type Classes
Intro Scala pitfalls

Intro Scala pitfalls

There are a handful of mistakes that most people (who aren’t coming from a Haskell background) tend to fall into.

Chris Martin's avatar
Chris Martin
Aug 24, 2015
∙ Paid
1

Share this post

Type Classes
Type Classes
Intro Scala pitfalls
Share

This is an abridged summary of what I’ve learned from watching a few people get started with Scala. There are a handful of mistakes that most people (who aren’t coming from a Haskell background) tend to fall into.

My advice for Scala beginners:

  1. Don’t use collections methods that throw.

  2. Don’t use Try (often).

  3. Don’t use Option.get.

  4. Reduce block depth with for …

Keep reading with a 7-day free trial

Subscribe to Type Classes to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Mission Valley Software LLC
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share