~/talk

Testing as an equal 1st class citizen (to coding)

Talkat NDC TechTown 2021 · 2021-08-30..09-02· [testing, developer-experience]
slides:none on file

Argues that testing and coding must be equal first-class citizens with concrete practices: instrument tests (pytest/coverage) to spot dead code, aim for 100% branch coverage so dead lines surface, measure test cyclomatic complexity and keep it near one path, name tests as short IDs with rich docstrings (given‑when‑then), and prefer minimal diagnostics on green. Cites NightTrader’s $450M loss from dead C++ code and finds in Cyber Dojo dead-test commits about 1 in 15, so these techniques prevent real failures.

AI-written summary · about

  1. 0:00Start
  2. 7:49free chocolate for everyone!
  3. 11:29stable systems tend to oppose their own proper function
  4. 13:23evolution is always co-evolution
  5. 29:14what is the coverage of a function? og, simple statement coverage
  6. 31:32are you confident enough to delete the dead code?
  7. 31:46do you think it is important to delete dead code?
  8. 37:15unless I have a way to detect and delete dead code then I will accumulate dead code
  9. 38:12what is the complexity of a function? eg, the number of different paths
  10. 39:01Equal Rights VOTES For Tests! TESTS
  11. 41:33hands up if you've ever thought a failing test was passing or vice-versa
  12. 41:50a test function should do one thing when it and something completely different when it passes
  13. 42:41a difference that makes a difference
  14. 42:55when a test function fails helpful diagnostics printed
  15. 46:20naming a function? • member function? • return value assignment? • argument expressions? • side effects?
  16. 49:36naming a test function is different because a test function is different
  17. 51:14there is too much context to carry in a single identifier
  18. 54:51uids make it easy to call test functions
~/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.