~/talk

How to write more reliable code

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

Covers practical ways to make C++ programs more reliable by using static analysis tools, sanitizers, and compiler warnings; shows how to integrate these into development workflows and CI. Includes concrete tools and techniques for detecting bugs earlier and improving code quality.

AI-written summary · about

  1. 0:00Intro
  2. 0:42Reliable code?
  3. 2:47Microsoft Zune Bug
  4. 3:33MySQL vulnerability
  5. 5:54Guidelines
  6. 6:18Manage resources automatically using resource handles and RAIL
  7. 7:12If in doubt about operator precedence, parenthesize
  8. 9:06Avoid complicated expressions
  9. 9:51Don't try to use volatile for synchronization
  10. 11:25A destructor may not fail
  11. 12:19Don't use macros for program text manipulation Don't use macros for constants or "functions"
  12. 13:27Unit testing and TDD
  13. 15:31Errors In Unit Tests
  14. 18:35Human reliability
  15. 22:46Static Analysis in a nutshell
  16. 23:00Misprints
  17. 25:14Data-flow analysis
  18. 29:44Tools
  19. 31:58Dynamic Analysis: Example 1 This bug was found in Chromium
  20. 33:40Example of an error that is invisible for dynamic analysis This bug was found in Valgrind
  21. 33:55Modern C++ helps to avoid bugs
  22. 38:55Do not reinvent the wheel
  23. 40:43Conclusions
  24. 41:03Questions?
  25. 42:52Code review
~/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.