Skip to content

Course

Modern Java Development

A senior practitioner's guide to Java 21+ — records, sealed types, pattern matching, virtual threads, modules, and migration habits that leave 2008-era Java behind.

9 lessons

Course Q&A

Reviews

Enrolled members can rate this course.

No reviews yet.

A Modern Type System

Use records, sealed hierarchies, and pattern matching to model domains precisely instead of fighting boilerplate.

  1. 01Records Are Domain Values, Not Just Less BoilerplateModel immutable value objects with records, compact constructors, validation, and a clear sense of when records are the wrong tool.23mOpen
  2. 02Sealed Types Make Illegal States Compile-Time ErrorsReplace stringly typed status fields and visitor boilerplate with sealed hierarchies the compiler can exhaustively check.26mOpen
  3. 03Pattern Matching and Switches Without the 2008 CeremonyUse pattern matching for instanceof, switch patterns, record decomposition, and guarded cases while avoiding cleverness that hides business rules.25mOpen

Concurrency After Loom

Adopt virtual threads, modern HTTP and IO, and disciplined concurrency without importing reactive complexity by default.

  1. 01Virtual Threads: The Mental Model That Prevents Bad AdviceUnderstand what virtual threads cheapen, what they do not cheapen, and how blocking code, synchronization, and thread locals behave in production.28mOpen
  2. 02Structured Concurrency and Scoped Values Without Cargo-Culting ThemShape concurrent work as a lifetime-bound tree, cancel correctly, and understand what scoped values replace before adopting preview APIs.24mOpen
  3. 03Modern IO, HttpClient, Time, and the Death of Runnable SpaghettiReplace legacy concurrency and utility habits with java.time, NIO, HttpClient, immutable collections, and straightforward service code.22mOpen

Modules, Tooling, and Migration

Use the module system selectively, modernize legacy code incrementally, and write Java that current maintainers enjoy.

  1. 01The Module System: Strong Boundaries for the Few Cases That Need ThemUnderstand module declarations, exports, requires, service binding, and when jars on the classpath remain the pragmatic answer.26mOpen
  2. 02Modernizing Legacy Java Without Rewriting the BusinessUse compiler upgrades, dependency analysis, characterization tests, and small idiomatic replacements to move pre-8 Java into a maintainable Java 21+ shape.29mOpen
  3. 03Writing Java That Does Not Read Like 2008Adoption rules for records, text blocks, switch expressions, Optional, immutability, exceptions, naming, and pragmatic object-oriented design.24mOpen