Scala Tutorial

Scala is a multi-paradigm programming language created by Martin Odersky, blending object-oriented and functional programming. The first version was released in 2004, the second in 2006, and the third in 2021. Scala programs run on the JVM (Java Virtual Machine) and can use Java classes directly.

Scope: Study the lessons in order, run the examples on the JVM, and revisit the index for targeted reference.

Scala Study Progress

0% Complete
# SCALA Topic Description
PHASE 1: LANGUAGE FOUNDATIONS
01OverviewScala's purpose, the JVM, and where it's used.
02Setup & ToolchainInstall Coursier, sbt, scala-cli, and the REPL.
03SyntaxCore Scala syntax and program structure.
04Data TypesType system, generics, and type inference.
05StringsInterpolators, StringOps, StringBuilder, and regex.
PHASE 2: COMPOSITION
06FunctionsFunctions, lambdas, and functional style.
07ClassesClasses, case classes, and objects.
08TraitsTraits and interface composition.
PHASE 3: DATA & FLOW
09CollectionsLists, maps, sets, and collection operations.
10Control FlowConditionals, loops, and pattern matching.
11Error HandlingOption, Try, Either, and when to still use exceptions.
PHASE 4: STRUCTURE & CONCURRENCY
12PackagesPackages, imports, and build organization.
13ConcurrencyThreads, Future, and ExecutionContext.
14TestingScalaTest, MUnit, fixtures, and sbt test.
PHASE 5: PRACTICE & REFERENCE
15Lab ExamplesSingle-file practice demos.
16References & ToolsPlaygrounds, docs, courses, samples.