~/talk

Fixing Design with Tests

Talkat Craft Conference 2023 · 2023-05-18..05-19· [testing]
slides:none on file

Automated tests reveal modularity problems by surfacing concrete pains: long methods, huge setup chains, hidden globals and IO, Law of Demeter chains, flaky sleeps and resource leaks. Tests work as tests as queries (REPL-style immediacy) and as boundaries you can enforce or move; write tests against what runs, let the code tell you its behavior, then apply known fixes like 24 dependency-breaking refactorings, extract classes (eg rule tokenizer) and parameterize external dependencies to make small, testable units.

AI-written summary · about

  1. 0:00Introduction
  2. 2:30Meanings of fixing in testing
  3. 7:43Testing pains and design problems
  4. 24:10Testing pain reveals design flaws
  5. 26:36Tests as design quality indicators
  6. 31:49Testing boundaries and encapsulation
  7. 32:31Testing existing code
  8. 34:17Tests as modularity tests
  9. 35:01Q&A
~/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.