~/talk

Testable by Design

Talkat Meeting C++ 2024 · 2024-11-14..11-16· [testing]
links:none on file
slides:none on file

A concrete heating controller is built and tested: a timer activator, a thermostat activator and a fake heater verify behavior, not implementation. Examples use modern C++ features — concepts, CTAD, smart pointers and std::chrono — and compare std::function versus templates, showing compile‑time vs runtime tradeoffs. Dependency injection, type aliases for domain concepts, and a chain of responsibility style composition make unit tests pass under Google Test while revealing lifetime choices (raw vs shared_ptr) and practical refactoring paths.

AI-written summary · about

  1. 0:00Introduction
  2. 7:48Designing with uncertainty
  3. 13:10Heating system base class
  4. 26:00Time and temperature separation
  5. 32:35Emerging design patterns
  6. 45:57Uncertainty-driven design
  7. 49:10Q&A
~/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.