~/talk

How TDD and CDD make your apps suck less

Talkat Ruby|Web Conference 2010 · 2010-09-09..09-10· [testing, developer-experience]
slides:none on file

Claim: using Test Driven Development plus Comment Driven Development makes code measurably better. Demonstrates writing tests around commented code, adding validations and exceptions, renaming long methods into withdraw/deposit, wrapping operations in a DB transaction to ensure rollback, and using autotest with metric tools like flog (score drops from ~25 total and a worst method 18.3 to 21.6 total and 6.6 worst). Tests grow from one weak assertion to five tests nine assertions and the refactor actually passes.

AI-written summary · about

  1. 0:00TDD and CDD intro
  2. 1:43Why apps suck
  3. 2:47What is CDD
  4. 3:51TDD and CDD benefits
  5. 6:16When to use TDD/CDD
  6. 7:41Testing tools
  7. 9:26Live refactoring demo
  8. 12:35Validation tests
  9. 14:22Authorization tests
  10. 15:47Refactoring clarity
  11. 17:58Final refactored code
  12. 19:25Code quality with Flog
  13. 19:45Conclusion
~/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.