~/talk

Clean Code: The Next Chapter

slides:none on file

Live refactoring of the Video Store kata shows concrete moves: keep tests green and use IDE refactorings to Extract Method, rename and inline until methods read like prose; replace long parameter lists with a parameter object or value type; move behavior to the owning class and prefer enums over magic numbers. Follow three rules for a hygienic switch (default, only instruction, one line per case). Demonstrations use Java (IntelliJ), unit tests as scaffolding, mob/timeboxed refactors, and a real example of a 35k-line class split into ~300 classes that works.

AI-written summary · about

  1. 0:00Start
  2. 16:48package the interface in a jar
  3. 42:33putting state in a singleton
  4. 50:28keep side-effects at the boundaries
  5. 1:03:35build a testing framework
  6. 1:08:47extract constants
  7. 1:27:53start with duplicating the method
  8. 1:28:49reduce the indentation
  9. 1:41:07aligning the code in the specification
  10. 2:10:18make a public static class statement formatter
~/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.