~/talk

How To Approach Refactoring

Talkat Agile India 2012 · 2012-02-17..02-19· [developer-experience]
slides:none on file

Argues that refactoring is essential for agility and gives concrete, repeatable practices: write tests before changing (unit, integration, performance), isolate or remove dependencies rather than curl up with inversion frameworks, and eliminate duplication so a bug isn’t fixed in many places. Recommends tiny, reversible steps with continuous automated tests, frequent commits—ideally within minutes—to avoid merge hell, and keeps methods short enough to see in one screen; warns against clever code and heavy commenting.

AI-written summary · about

  1. 0:00Introduction
  2. 1:28What is refactoring
  3. 4:44Why should we refactor
  4. 6:18Why do we write bad code
  5. 8:40Evolution
  6. 11:23Make it work
  7. 13:21Refactoring
  8. 17:12What if it breaks
  9. 21:01Zeroth Principle
  10. 22:03Functional Integration
  11. 24:26On Writing
  12. 25:23On Simplicity
  13. 26:03On Clarity
  14. 27:10On Gravity
  15. 27:44Single Letter Variables
  16. 29:10Zero Principle
  17. 32:48Clever Code
  18. 35:51Hard to Reuse
  19. 38:58The Process
  20. 39:44Level of abstraction
  21. 40:33Eliminate duplication
  22. 40:50Example of code duplication
  23. 41:35DRI principle
  24. 42:39Knock out dependencies
  25. 43:08Eliminate dependency not inverted
  26. 43:35Make comments redundant
  27. 45:48Good code should be self documented
  28. 47:00In seconds not minutes
  29. 48:11The right code
  30. 50:09Merge hell
  31. 50:25The second problem
  32. 51:53Code Smell
  33. 52:32Continuous Refactor
~/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.