~/talk

Test Driven Design - Coupling Loosely

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

Claims that mock objects let tests exercise legacy code without changing it but do not reduce coupling or improve cohesion; shows a concrete download test that mocks network and file calls. Demonstrates replacing big switch statements with strategy pattern, using chainable set-based functions (jQuery style) to eliminate error branches, and applying currying and closures in C# and Python to decouple UI from authentication logic and add caching. Recommends query-over-objects, SQLAlchemy/Linq POCO patterns, and business-level unit-of-work transactions to remove database mocks and keep tests fast.

AI-written summary · about

  1. 0:00Start
  2. 1:08Framing Discussion
  3. 4:18Problem with Loose Coupling
  4. 6:09Mock Objects
  5. 6:49Mocks
  6. 7:33Code Level Object Level Mocks
  7. 8:29Mock Object Testing
  8. 10:04Algorithms
  9. 12:54Chainable Set Based Functions
  10. 17:19Functions
  11. 21:46Closures
  12. 25:17Algorithmic Decoupling
  13. 26:33Data Access
  14. 29:59Database Transactions
  15. 32:08Restful Requests
  16. 36:02Request Lifecycle
~/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.