World Records - Overview and Use Cases for Records
summary
The talk surveys Java 17 records—immutable data-holder types—and compares them to similar features in other languages (Kotlin data classes, Python @dataclass, Scala case classes). It then presents concrete use cases for records, including pattern matching, domain-driven design (DDD) models, and even implementing monoids.
AI-written summary · about
chapters (10)
- 0:00Java records overview
- 2:28Introduction
- 3:52Records vs Lombok
- 6:17Records use cases
- 7:42Sorting with local records
- 8:46Primitive obsession with records
- 10:07Business modeling with records
- 11:52Records as Value Objects
- 12:54Functional programming and records
- 13:56Summary
related talks
15mWorld Record — Overview and Use Cases for Records
42mBetter Modeling Through Records
46mJava Records for the Intrigued
44mUsing Record Types to Build Better Domain Models
37mRecord Patterns - Going Beyond Records - A Deep Dive
31mData Oriented Programming and Matching in Java
37mRecords, Not Just Constant Classes, A Deep Dive
13mThe Record: Migrate to Immutability
