~/talk

Design Patterns are Easy inside an IoC Container

Talkat XtremeJ 2025 · on Tuesday, 2025-11-25· [spring, software-architecture]
links:none on file
slides:none on file

Shows a concrete refactor of a flight-quoting service that replaces nested if/else discounts with a Spring-based executor that injects all beans into a Map and auto-discovers strategy beans by name. Uses Spring components, sorting by grouping priority and inner priority, then for each group applies the first supporting rule (chain-of-responsibility/strategy hybrid). Example: €1,000 fares get 20% or 5% rules across six groups, producing €720 after reductions; new rules add by dropping a @Component class — service code never changes.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 3:49Flight ticket system overview
  3. 9:41Problems with nested conditionals
  4. 13:18Design patterns for refactoring
  5. 18:23Strategy pattern implementation
  6. 23:23Rule grouping and execution
  7. 30:17Discount strategy executor
  8. 35:59Benefits of IOC container
  9. 37:26Spring-specific tips
  10. 39:13Q&A and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.