~/talk

Domain Re discovery Patterns for Legacy Code

slides:none on file

Performs a three‑week health check on a 4 million‑line codebase to rediscover domain by building a code map (lines, cyclomatic complexity, churn) and mapping git temporal coupling to reveal hidden dependencies. Extracts humble controller classes, defines ports as interfaces, and adds characterization tests (approval‑style snapshots) plus an integration DSL that lets tests remain stable while constructors and internals change. Uses ArcUnit rules to freeze architectural constraints. Tooling (CodeCarter, git metrics) and these steps reduce unpredictability and expose domain models that become testable and refactorable.

AI-written summary · about

  1. 0:00🚀 Build Stuff Conference – Get Your Tickets!
  2. 0:30Introduction: Legacy Code and the Need for Rediscovery Patterns
  3. 3:00Domain Rediscovery: Understanding the Code's Intentions
  4. 6:00Pattern 1: Creating a Code Map to Visualize Complexity
  5. 9:20Pattern 2: Starting at the Edge with Controllers
  6. 12:00Making Controllers Humble and Extracting Logic
  7. 15:30Testing: Characterization Tests for Legacy Code
  8. 18:40How to Manage Refactoring and Avoid Redundant Tests
  9. 22:13Using Abstraction Layers for Cleaner Testing
  10. 25:00Handling Dependencies and Coupling in Legacy Code
  11. 28:10The Importance of Correcting Conventions to Improve Code
  12. 32:00Managing Complexity: Using Tools like Code Cartter
  13. 35:00The Role of Predictability and Structured Refactoring
  14. 38:30Conclusion: How Domain Rediscovery Improves Legacy Code
~/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.