~/talk

Domain-Driven Refactoring

Talkat NDC Oslo 2020 · 2020-06-08..06-12· [software-architecture]
slides:none on file

A procedural handler that loads member and offer data, calls an external rules API, computes expirations and saves changes is refactored step‑by‑step into a cohesive domain model using ReSharper, EF Core and a SmartEnum library. The process extracts a OfferValueCalculator behind an interface, moves expiration logic into an ExpirationType smart enum implementing a strategy per value, replaces public lists with a backing field for EF Core, and applies double‑dispatch so the domain object becomes unit‑testable and persists via value conversion.

AI-written summary · about

  1. 0:00Introduction
  2. 1:50What is DomainDriven Design
  3. 3:24Domain Model
  4. 4:42The Problem
  5. 5:21Test Urban Design
  6. 5:44Refactoring
  7. 6:24Books
  8. 7:53Current State
  9. 10:54Where is the behavior
  10. 13:23Mediator
  11. 15:17Code Walkthrough
  12. 22:01Reverse Refactoring
  13. 29:44OfferValue Calculator
  14. 36:56Expiration Type
  15. 40:31Assignment and Fixed Expiration Types
  16. 45:55Abstract Methods
  17. 50:03Assign Offer Method
  18. 54:21Assign Offer Logic
~/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.