~/talk

Domain-Driven Refactoring

slides:none on file

Starts from a procedural “loyalty rewards” handler that loads data, calls an HTTP service, computes values, and saves via EF; applies concrete refactorings (compose/inline methods, extract class, extract interface, use base type, move method to type) with ReSharper and DI changes so the logic moves into OfferType and Member, constructors and private setters enforce invariants, and a domain double dispatch pattern handles async value lookup. Result: behavior lives in domain objects, easier testing and safer mutations.

AI-written summary · about

  1. 0:00Start
  2. 2:08Object Model of the Domain
  3. 2:21Patterns of Enterprise Application Architecture
  4. 11:36Calculating the Expiration Date
  5. 12:23Assign an Offer to a Method
  6. 15:43The Transaction Script Pattern Transaction
  7. 16:48Calculate Offer Value
  8. 24:05Extract Method into Class Refactoring
  9. 24:22Fix Up the Dependency Injection
  10. 25:10Domain Service
  11. 27:00Defactoring
  12. 30:30Make this Method Non-Static
  13. 40:39Double Dispatch Pattern
  14. 54:37Assign Offer Method
  15. 59:54Domain Driven Design
~/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.