~/talk

Clean Integral Code

Talkat Meeting C++ 2018 · 2018-11-15..11-17· [rust]
links:none on file
slides:none on file

Argues that raw integers cause surprising bugs and that code needs concrete choices: use bitset for flags, strongly typed ID or name-tagged wrappers instead of plain unsigned, prefer signed arithmetic for amounts and convert to signed quickly to avoid unsigned surprises, prefer iterators for indexing, and use libraries like Boost.MultiPrecision or safe numerix to catch overflow. Gives concrete refactor patterns, examples of UB from promotions, and a checklist of when an integer is the right tool.

AI-written summary · about

  1. 0:00Introduction
  2. 7:20Questions
  3. 14:07Score
  4. 17:37Rules
  5. 20:09Single Purpose
  6. 22:20Integers
  7. 23:54Use Cases
  8. 26:20BitSet
  9. 27:59Boolean
  10. 29:21Exercise
  11. 34:13Text Manipulation
  12. 40:10Difference Types
  13. 41:47Objections
  14. 44:51Iterators
  15. 46:08Bugs
  16. 52:29Conclusions
~/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.