~/talk

Inheriting a Sloppy Codebase: A Practical Guide to Wrangling Chaotic Code

Talkat DjangoCon US 2014 · 2014-08-30..09-06· [developer-experience]
speakerdeck:ckinsey
slides:none on file

Get a copy on a new branch, create a disposable virtualenv, run tests under coverage.py and write broad integration tests for every view plus unit tests for business-critical logic, aiming for 95% coverage. Use an IDE with refactoring and a debugger (PyCharm, pdb/ipdb), lint with pylint/pep8, then audit and trim third-party packages — a real case removes 133 dependencies — freeze requirements, upgrade libraries, and reorganize apps (move models first), eliminate hidden signals/context-processor middleware side effects, and document while you change.

AI-written summary · about

  1. 0:00Introduction and context
  2. 0:44Origins of sloppy code
  3. 6:12Essential developer tools
  4. 10:53Initial project setup
  5. 13:10Establishing test coverage
  6. 18:27Dependency management
  7. 22:12Refactoring the monolith
  8. 26:13Fixing distributed apps
  9. 27:30Signal and receiver audit
  10. 31:13Middleware and context
  11. 34:09Documentation and best practices
  12. 38:45Conclusion
~/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.