~/talk

Some Programming Myths Revisited

Talkat CppCon 2019 · 2019-09-15..09-20· [software-architecture, c-and-cpp]
links:none on file
slides:none on file

Argues that several entrenched C++ rules deserve re-evaluation: goto considered harmful is overstated because break/continue/switch handle structured jumps, compilers optimize away micro-optimizations, and language rules prevent skipping constructors; only one return per function is often harmful for clarity and performance, early returns reduce temporary/default construction (std::variant/monostate and exceptions are shown); initialize everything wastes work — declare when needed; all data private is good advice but not mandatory if no invariants exist. Measure before optimizing and prefer small functions.

AI-written summary · about

  1. 0:00Introduction to myths
  2. 3:16Go-to statements reconsidered
  3. 8:12Error handling with jumps
  4. 13:53Structured programming trade-offs
  5. 22:23Single exit per function
  6. 28:00Early returns in practice
  7. 38:57Public vs private data members
  8. 44:00Initialization myths
  9. 52:51Modern coding practices
  10. 57:10Q&A and closing
~/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.