~/talk

You Can Test Anything

Talkat Agile Roots 2010 · 2010-06-18..06-20· [testing, legacy-modernisation]
links:none on file
slides:none on file

Claim: any hard-to-test legacy code can be made testable by small, mechanical refactorings and test doubles. The session walks code excerpts in Java C# C++ and Ruby and shows techniques like adapt parameter, parametrize constructor, extract and override call, moving globals into objects (one project had 760 globals), splitting methods into a method object, and definition completion/monkey‑patching to stub platform calls. Each recipe produces a fake or overload, compiles and lets unit tests run; some changes trade ugliness for safety but they work.

AI-written summary · about

  1. 0:00Start
  2. 2:56Automated Unit Testing
  3. 6:49The Parthenon
  4. 8:00Legacy Code
  5. 43:15Practices for Scaling Lean Agile Development
  6. 45:53One Definition Rule
  7. 47:21Definition Completion
  8. 48:48Monkey Patching
  9. 53:20Code Snippets
  10. 54:39In-Memory Database
  11. 57:45What about Interaction between Asynchronous Events
~/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.