Speakers: Miroslav Wegner and Benedikt Neumayr
For more see the table of contents
Byte code optimization
- Inlining
- Elimination
- Scalarization
Design patterns
- SOLID
- DRY don’t repeat yourself
- Separation of concerns
- CAP – two of three (consistency, availability, partition tolderance)
Creating objects
- Factory vs Builder
- Example of using a builder with a sealed class
- Factory: List.of(…)
- Switch expression to determine what to create in factory
Organizing code
- Organize code around instantiated objects: Adapter, Flyweight
- Spiterator is an adapter
- IntegerCache is Flyweight
Enforcin behavior at runtime
- Chain of responsibility, command, caching
- Logger is chain of responsibility
- Runnable and Callable are command
Concurrency
- Thread pool pattern
- Executors
My take
I liked the one line ”safe harbor” statement that anything could change. Nice link between patterns we’ve known forever and new (and old) classes. There was a good crowd. I wish they had a room vs being on the floor of the exhibit hall. I also wish it was longer (vs a 20 min session)
Thank you Jeannne for such nice worlds, I also wish we had more space to go a little deeper into the topic, because the Java platform provides more and more nice features, maybe next time. I’m finishing the book now https://www.barnesandnoble.com/w/practical-design-patterns-for-java-developers-miroslav-wengner/1142722647 almost there. See you next time !