Scala 3 Developer Path: From First Program to a Tested Project
Install Scala 3, then learn values, functions, collections, case classes, pattern matching, error handling, and building and testing with sbt.
8 lessons · about 79 minutes of reading·1 view
Log in to track your progress through this course.
Start lesson 1- 1
Scala 3 for Beginners: Install Scala and Run Your First Program
Set up Java and Scala with Coursier, run code with Scala CLI and the REPL, and learn why Scala matters for data engineering with Apache Spark.
8 min read
- 2
Scala Values, Types, and Control Flow
Learn val versus var, type inference, string interpolation, if as an expression, pattern matching with match, and for and while loops in Scala 3.
10 min read
- 3
Scala Functions, Lambdas, and Higher-Order Functions
Define methods with default and named parameters, write anonymous functions, pass functions as arguments, and write tail-recursive functions in Scala 3.
10 min read
- 4
Scala Collections: List, Vector, Set, and Map
Work with Scala's immutable collections and transform data with map, filter, flatMap, foldLeft, groupBy, and for comprehensions.
11 min read
- 5
Scala Classes, Case Classes, Objects, and Traits
Define classes and case classes, use companion objects, share behavior with traits, and model data in clean, immutable Scala 3 code.
10 min read
- 6
Scala Pattern Matching and Algebraic Data Types
Model data with enums and sealed traits, take it apart with exhaustive pattern matching, and use guards, nested patterns, and list patterns.
10 min read
- 7
Scala Error Handling with Option, Either, and Try
Handle missing values and failures without null or exceptions using Option, Either, and Try, and chain them cleanly with for comprehensions.
10 min read
- 8
Build and Test a Scala Project with sbt and munit
Create a Scala 3 project with sbt, understand build.sbt and the standard folder layout, add the munit test library, and run and write your first tests.
10 min read