Data Focused programming with Pattern Matching in Java
summary
Live coding shows Java records, sealed types and pattern matching actually reducing code and bugs: converting a hand-written Person class to a record makes collection lookups return true by providing equals/hashCode automatically and keeps fields immutable despite reflection attempts, while sealed interfaces plus sealed types enable exhaustive switches remove need for default cases. Demos use IntelliJ, switch expressions, record patterns to deconstruct JSON/CSV-like structures and show records make equals/hashCode implicit and pattern matching for instanceof reduces temp variables for concise, declarative data processing.
AI-written summary · about
chapters (5)
- 0:00Introduction to DOP
- 7:30Working with records
- 23:53Sealed classes
- 36:28Pattern matching
- 45:35Real-world applications
related talks
33mImprove your Java Applications with Records and Pattern Matching
31mData Oriented Programming and Matching in Java
47mData-oriented programming in Java
01h 08mClean Application Development with Records, Sealed Classes and Pattern Matching
38mPattern Matching in Java: Better Code, Better APIs
56mThe Art of Java Language Pattern Matching
49mData-oriented Programming in Java
37mRecord Patterns - Going Beyond Records - A Deep Dive
