Using Record Types to Build Better Domain Models
summary
Covers Java Records (introduced in Java 14) and the move toward true value types: the record syntax, differences between reference and value types, and how value types affect immutability, readability, and performance (stack vs heap storage). Compares value-type implementations in other languages, discusses inheritance implications for value types, and argues how using value types leads to better domain models and fewer failures.
AI-written summary · about
chapters (6)
- 0:00Values and records intro
- 10:39Objects vs values explained
- 23:51Records simplify value types
- 34:17Future of value types in Java
- 39:15Objects and values in domain model
- 41:17Q&A
related talks
42mBetter Modeling Through Records
15mWorld Records - Overview and Use Cases for Records
15mWorld Record — Overview and Use Cases for Records
46mJava Records for the Intrigued
31mData Oriented Programming and Matching in Java
37mRecord Patterns - Going Beyond Records - A Deep Dive
49mData-oriented Programming in Java
33mImprove your Java Applications with Records and Pattern Matching
