Creating A Better Developer Experience By Avoiding Legacy Code
summary
Argues that legacy pain comes from untestable code and tightly coupled third party tools and offers concrete fixes: inject dependencies instead of calling Firebase or Crashlytics statics, create an error reporter interface to wrap vendors so swapping to Sentry is a one line change, document workarounds with links (example ViewPager code replaced later by ViewPager2), and deprecate globals while incrementally replacing them so tests and confident refactors become practical.
AI-written summary · about
chapters (9)
- 0:00Avoiding legacy code
- 1:01Legacy code defined
- 4:53Preventing legacy code
- 7:20Causes: lack of tests
- 9:27Untestable code issues
- 13:40Wrapping dependencies
- 20:59Documentation to prevent unmaintainable code
- 31:10Key strategies recap
- 32:34Q&A
related talks
42mWorking Effectively with (Android) Legacy Code
39mThe End of Legacy Code
37mWorking Effectively with Android Legacy Code
01h 01mGuide to Destroying Codebases the Demise of Clever Code
43mBuilding for Developers
35mQuickly and Safely Refactoring Legacy Code
33mGuide for lazy developer
22mHow to write better legacy code: A developer's wishlist
