DEV Community

Rocky Warren
Rocky Warren

Posted on • Originally published at rocky.dev on

Scala Learning Resources

Like any new technology, Scala and its ecosystem take a while to master and can be frustrating at times. Don't get discouraged! Here are some resources to help.

  • Popular IDEs are IntelliJ IDEA with the Scala plugin and Visual Studio Code with the Scala (Metals) extension. If you're unsure which to choose, go with IntelliJ.
  • Functional vs Imperative Programming

The core of Functional Programming is thinking about data-flow rather than control-flow. Although, by virtue of editing plain text, you are forced to order your code in a linear sequence of statements, those statements are a thin skin over what you really care about: the shape and structure of the data-flow graph within your program.

  • Tour of Scala ā€” A tour of bite-sized introductions to the most frequently used features of Scala intended for newcomers to the language.
  • Scala: The Good Parts ā€” Scala allows you to accomplish tasks in different ways. This blog post explains some of the more readable, maintainable approaches.
  • Scala Best Practices ā€” Rather than using random examples from Scala projects in the wild, these are meant as an evolving "best" way of doing things.
  • šŸ’» Scala Exercises ā€” An Open Source project for learning different Scala technologies. Generally relevant are the "Scala Tutorial", "Std Lib", and "Cats" exercises.
  • šŸ“– Scala for the Impatient ā€” An approachable book (384 pages and you can skip the chapters on XML and Parsers) for experienced Java/C++/C# developers who are new to Scala or functional programming. It introduces key Scala concepts and techniques in order to be productive quickly.

Tools/Libraries

  • sbt ā€” Scala Build Tool, similar to Gradle for Java.
  • Scalafmt ā€” Code formatter, similar to Prettier for JavaScript.
  • Scalafix ā€” Refactoring and linting tool, similar to ESLint for JavaScript.
  • ScalaTest ā€” Testing tool, similar to JUnit for Java.
  • mockito-scala ā€” Test mocking, a Scala-friendly API over Java's Mockito.
  • Cats ā€” Short for "category", provides functional programming abstractions. The homepage provides a Jump Start Guide, Type Class and Date Type documentation, and motivations behind the library. ā€” šŸ“– Scala with Cats ā€” Free e-book available in HTML, PDF, and ePUB formats introducing the Cats library.
  • Akka and Akka Streams ā€” A toolkit for building highly concurrent, distributed, and resilient message-driven applications.
  • Alpakka ā€” An Akka Streams-based library used to publish and subscribe to SQS, S3, Kafka, etc. with built-in back pressure support.
  • Slick ā€” A reactive, functional object-relational mapper (ORM).

Top comments (0)