Advanced Types
- Match types. Scala 3 match types compute types from types: the type level’s pattern matching.
- Inline and metaprogramming. inline and macros generate code at compile time: powerful, budgeted, library territory.
- Reading type errors. Hard type errors read inside-out: find the concrete mismatch, then walk the constraints outward.
Functional Architecture
- Ports and adapters. Functional systems put interfaces (traits) at the edges: pure core, adapters for DB and HTTP.
- Capability passing. Dependencies arrive as parameters: given capabilities or explicit arguments, never globals.
- When Scala fits. Scala buys expressive types and JVM reach at a complexity cost: mastery names when that trade wins.
Reading and Improving Complex Scala
- Reading strategy. Read Scala through its ADTs and signatures: the types are the architecture document.
- Refactoring with exhaustiveness. Add the case, follow the warnings: sealed types turn refactors into checklists.
- Explaining decisions. Mastery is explaining the design: this effect level, this type depth, these boundaries: trade-offs named.
Before and after this level
- Before: Level 12: Performance & Production: JVM Performance, Functional Allocation Trade-Offs, Production Scala Design.
- Next: this is the last level. The course ends with its projects; see the course outline.
In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.
Frequently asked questions
What does Scala Level 13: Scala Mastery cover?
Advanced Types, Functional Architecture, Reading and Improving Complex Scala: 3 lessons and 9 ideas.
What should I know before this level?
The level before it, Level 12: Performance & Production, which covers JVM Performance, Functional Allocation Trade-Offs, Production Scala Design.