Course details
Scala
Learn the core of Scala 3, the JVM language that blends object-oriented and functional programming. You will set up Scala, name values with the right types, combine them with operators, make decisions with if and match, store data in lists, sets and maps, and loop over it — all while building one small run club logbook.
Course curriculum
Setting Up Scala4 lessons
Learn what kind of language Scala is, install it with Coursier, run a program with a @main function, try ideas in the REPL, and set up IntelliJ IDEA or a Metals-powered editor.
Variables, Constants and Types5 lessons
Decide when a name may change with val and var, pick between whole numbers and decimals, build text with strings and interpolation, see where Unit and Nothing sit in the type hierarchy, and convert safely between types.
Operators3 lessons
Use arithmetic operators and the / and % pair, compare values and combine conditions with short-circuit logic, and see why every Scala operator is really a method with a precedence set by its first character.
Conditionals3 lessons
Use if as an expression that returns a value, order else if chains so every branch is reachable, and choose by value with a first, simple match expression.
Data Structures5 lessons
Store runs in immutable Lists and Vectors, use Arrays where Java meets Scala, keep unique names in a Set, look distances up by name in a Map, and choose mutable collections on purpose when something must change in place.
Loops4 lessons
Walk collections with for, count with ranges, repeat until a condition with while and leave early with boundary and break, then turn loops into values with for and yield.
