The modern view on implementation of design patterns (RU)
summary
Claims that classic patterns still matter but many are simplified or replaced by Java 8 features, with concrete code on GitHub demonstrating refactors: a ServiceRegistry moved to DI so Singleton becomes an antipattern, builders shown as stateful vs runtime variants, prototype proven rarely useful, factories replaced by functions and method references, adapters and commands implemented as lambdas, proxies handled by AOP or ByteBuddy for proxies, iterators converted to streams via Spliterator. Demos run and show fewer classes, clearer tests, and practical migration steps using Spring, streams and functional interfaces.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 2:29What are design patterns
- 5:56Singleton pattern
- 10:54Builder pattern evolution
- 15:40Prototype pattern benefits
- 20:37Factory Method in Java
- 24:54Adapter pattern and functional interfaces
- 29:33Proxy pattern and AOP
- 35:09Template Method and composition
- 40:04Command pattern and lambdas
- 42:12Chain of Responsibility
- 45:07Strategy pattern flexibility
- 47:23Iterator pattern and streams
- 50:27Summary
related talks
55mThe modern view on implementation of classic design patterns in Java
55mRevisiting Design Patterns After 20
01h 03mJava Design Patterns 2022
45mRevisiting Design Patterns after 20
43mDesign Patterns in Java 8
48mRevisiting Design Patterns after 20
43mRolling with New Java Enhancements: Practical Design Patterns
02h 47mSpring Patterns for Grown-Ups
