~/talk

Rewriting 15-Year-Old Code

Talkat code.talks 2017 · 2017-09-28..09-29· [php]
slides:none on file

Claim: full rewrites almost always fail; progressive, feature-by-feature rewrites succeed. Concrete evidence: a codebase with 1.5 million lines, 5,000 classes and 20,000 methods yields a successful outcome when the billing module is rewritten in 40 hours, eliminating bugs and saving thousands. Techniques used include mod_rewrite and a session adapter to share sessions, Symfony migrations, HTTP-level tests with Guzzle/Behat, design extraction to write specs, and deduplication after finding the same bug copied ~80 times; the approach proves effective.

AI-written summary · about

  1. 0:00Intro
  2. 0:38Anna Filina
  3. 1:22Yahoo 2000
  4. 2:22Legacy by Design
  5. 5:11Beware of the Dev Mode
  6. 7:30Long Methods
  7. 7:44Helper Classes
  8. 10:02The codebase itself
  9. 10:35Make a strategy
  10. 13:20Precautions
  11. 17:18Legacy Data
  12. 18:11Failed Rewrite
  13. 20:25Solution Rewrite
  14. 21:37Rewrite Size
  15. 22:25Design Extraction
  16. 24:34Deduplicate
  17. 27:40Logical Groups
  18. 29:36Rewrite Example 2
  19. 29:59Session Adapter
  20. 30:51HTTP Request
  21. 31:44Testing
  22. 32:07Static Methods
  23. 32:41Bounce Ideas
  24. 35:12Felina
  25. 35:34Questions
  26. 36:12Deleting code
  27. 37:03Completion of refactoring
  28. 38:32Impact of refactoring
  29. 39:45Garbage data
  30. 42:40Rewriting is impossible
  31. 44:23How to solve that
~/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.