~/talk

Refactoring and Test Fakes: Crafting Resilient Code with Confidence

Talkat Droidcon London 2023 · 2023-10-26..10-27· [testing, developer-experience]
slides:none on file

Argues refactor by creating seams (constructor injection, function params, narrower interfaces) so dependencies become replaceable without behavior changes; warns that runtime-generated mocks introduce API sensitivity and hidden mutability; recommends fast unit tests with simple stubs and in-memory test fakes that verify outcomes, not interactions; highlights Kotlin features (immutable collections, final classes) and unidirectional data flow to avoid shared mutable state and make refactoring and tests reproducible.

AI-written summary · about

  1. 0:00Introduction and legacy code challenges
  2. 10:59Kotlin’s role in resilient code
  3. 17:14Refactoring with test fakes
  4. 27:08Choosing test doubles wisely
~/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.