~/talk

Making Legacy Code Your Friend

Talkat JS Poland 5th Edition · on Wednesday, 2022-01-26· [legacy-modernisation, developer-experience]
links:none on file
slides:none on file

Migrates an AngularJS ES5 app into a hybrid Angular + TypeScript codebase, reaches ~60% unit test coverage, cuts tech debt by ~60% and bugs by ~43% while making time to market 2.7× faster. Uses Angular Upgrade, Code Forensics and import-counting to find hotspots, applies sprout technique and wrap technique to move logic into small files, uses mergeable to cap PRs at 500 lines, adopts TypeDI, characterization/snapshot tests and feature flags to verify changes safely.

AI-written summary · about

  1. 0:00Introduction to legacy code
  2. 1:38Why rewrite isn't the answer
  3. 3:05Incremental improvements strategy
  4. 4:29Prioritizing refactoring efforts
  5. 6:16Divide and conquer approach
  6. 8:45Controlling PR size with mergeable
  7. 9:48Managing dependencies with TypeDI
  8. 10:30Migrating to TypeScript benefits
  9. 11:54Testing pyramid vs testing trophy
  10. 13:18Characterization tests for legacy
  11. 14:20Refactoring with feature flags
  12. 15:45Clean code during incidents
  13. 17:08Results and key takeaways
~/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.