~/talk

Value Oriented Programming. Part 1: You Say You Want To Write A Function

Talkat CppNorth 2022 · 2022-07-18..07-20· [software-architecture, c-and-cpp]
slides:none on file

Argues that small, testable functions reduce complecting by taking only what they need (pass orientation/tolerance values, not a whole Projector object), separates pure calculation from side-effecting apply steps (separate calculating from doing), and prefers returning results (std::vector moves, not in/out params) to void/in-out patterns. Shows practical C++ details: use const-ref, rely on move semantics, prefer free functions to fat class APIs, check code on Godbolt, and notes real benefits for testing, threading safety, and long-term maintainability.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:07Why we write functions
  3. 10:19Koan about functions
  4. 13:55Passing minimal parameters
  5. 20:30Value oriented programming basics
  6. 24:01Separate calculation from doing
  7. 28:55Functions and maintainability
  8. 36:05Avoid bloated classes
  9. 42:06Member vs free functions
  10. 47:10Parameter direction and naming
  11. 53:13Real-world code examples
  12. 57:03Refactoring and future-proofing
  13. 59:31Encouraging better practices
~/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.