~/talk

The Shape of a Program

Talkat CppCon 2018 · 2018-09-23..09-28· [rust]
links:none on file
slides:none on file

Argues that complexity is usefully measured by the area under the indentation and demonstrates concrete refactorings that reduce it: invert nested ifs into guard clauses and pull blocks (like a big switch) out via extract function. Shows a nested example where these steps shrink indentation dramatically — more than half in the demo — turning a deep, hard-to-follow function into a short, flat one that compiles and keeps original behavior.

AI-written summary · about

  1. 0:00Introduction
  2. 1:35Program Complexity
  3. 1:54Number of Program
  4. 2:04Complexity Metric
  5. 2:14Wikipedia
  6. 2:30Twitter
  7. 2:58Squarish
  8. 3:11Complex
  9. 3:57Guard clauses
  10. 4:25Extracting
  11. 4:44Conclusion
~/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.