# Scala Level 13: Scala Mastery

> Level 13: Scala Mastery of the LoWisa Scala course: Advanced Types, Functional Architecture, Reading and Improving Complex Scala. 3 lessons and 9 ideas, each explained in one line.

Scala Mastery is level 13 of 13 of the [LoWisa Scala course](/courses/scala/). It has 3 lessons and 9 ideas. Below is every lesson and what it teaches, in one line each.

## 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](/courses/scala/level-12-performance-and-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](/courses/scala/).

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](/help/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.

## Learn Scala on your phone

The first level is free. LoWisa is on Google Play and the App Store.

---

Source: https://lowisa.dev/courses/scala/level-13-scala-mastery/ · Updated 2026-11-30
