Better Modeling Through Records
summary
Introduces Java's new record classes (the record keyword) as a concise way to define immutable data carriers, with the compiler generating boilerplate like constructors, equals, and hashCode. Argues the purpose of records is not just reducing typing or imitating Lombok/@Data, but enabling better domain modeling and safer, more concurrent-friendly designs, similar to records in C# and data structures in Scala/Kotlin.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:45Records and Java features
- 6:30Records structure
- 12:39Value semantics and records
- 17:20Value vs reference semantics
- 24:46Modeling advantages with records
- 30:45Value semantics errors and fixes
- 34:41Modularity and records
- 39:24Language and thought
- 41:09Summary
related talks
46mJava Records for the Intrigued
15mWorld Records - Overview and Use Cases for Records
15mWorld Record — Overview and Use Cases for Records
44mUsing Record Types to Build Better Domain Models
13mThe Record: Migrate to Immutability
37mRecords, Not Just Constant Classes, A Deep Dive
31mData Oriented Programming and Matching in Java
49mData-oriented Programming in Java
