Rolling with New Java Enhancements: Practical Design Patterns
Talkat JCON Europe 2023 · on Wednesday, 2023-06-21· at 17:00· Cinema 5, Im Mediapark 1, 50670 Köln, Germany·
summary
Claims that Java 21 features make classic patterns smaller, safer and faster with concrete techniques and tools. Demonstrations use records to get auto equals hashCode and immutability, pattern matching in switch and instanceof to replace casting, and ReentrantReadWriteLock and bulkhead-style concurrency from java.util.concurrent for safe readers/writers. Java Flight Recorder visualizes thread and allocation hotspots, showing how switching Integer to int cuts allocations and GC pressure. Cited cost of poor code is $300 billion per year, and examples claim measurable maintenance and testing time reductions.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker intro
- 3:11Java version context and migration
- 6:45Poor code quality impact and causes
- 11:59Project happiness pyramid and discipline
- 20:11Platform anti-patterns and autoboxing
- 24:51SOLID principles and code reuse
- 27:42Concurrency patterns in Java
- 30:15Creational design patterns with Java 21
- 33:41Structural patterns and switch improvements
- 35:06Behavioral patterns and stream APIs
- 36:51Java 21 features impact and benefits
- 39:39Conclusion and cost reduction
related talks
50mTo Java 20 and Beyond
33mImprove your Java Applications with Records and Pattern Matching
46mThe Art of Java Type Patterns
50mThe Cool Thing about Cool Things in Java 16 & 17 LTS
01h 11mModern Java: This is not your father's Java anymore
32mGetting the Most from Modern Java
56mTo Java 22 and Beyond!
47mOld Dog, New Tricks: The Java 25 Reinvention
