~/talk

Design Patterns Revisited in Modern Java

Talkat Devoxx Belgium 2024 · 2024-10-07..10-11· [java, software-architecture]
slides:none on file

Explains concrete rules and code examples: Optional prevents many NPEs when used as a return type but adds overhead and causes confusion as fields or parameters, so return Optional only for maybe-missing values and avoid Optional fields/params; strategy becomes simple lambdas (no extra classes); Supplier defers work to implement lazy evaluation and saves wasted slow computations so use Supplier to defer expensive work; compose Function filters as lightweight decorators; provide an execute‑around Consumer pattern to always close resources; sealed interfaces limit who can implement and pattern matching reduces visitor boilerplate.

AI-written summary · about

  1. 0:00Introduction to workshop
  2. 1:03Design patterns overview
  3. 9:30Optional anti-patterns
  4. 30:50Java evolution and patterns
  5. 1:00:40Strategy pattern with lambdas
  6. 1:22:56Break
  7. 1:42:00Lazy evaluation with suppliers
  8. 2:06:50Decorator pattern with functions
  9. 2:22:56Fluent interfaces
  10. 2:33:24Execute around method pattern
  11. 2:40:16Sealed classes and data orientation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.