~/talk

Phantastic Code Smells and where to find them

Talkat Meeting C++ 2019 · 2019-11-14..11-16· [testing]
github:arnemertz
slides:none on file

Enumerates concrete smells (long functions, deep nesting, complicated boolean expressions, premature generalization) with examples from SFML, Qt and vendor SDK code and shows fixes: factor blocks into named functions, prefer RAII for cleanup, mark methods const, follow the rule of three/five, replace raw loops with algorithms or ranges. Recommends measuring performance with a profiler and using sanitizers and IDE tooling; notes about 50+ named smells and when a smell is not a real problem.

AI-written summary · about

  1. 0:00Intro
  2. 0:56Whats a code smell
  3. 2:48SFML example program
  4. 3:53Result
  5. 4:07Long Function
  6. 5:46Hard Limits
  7. 8:08UpdateShape
  8. 10:04FillColor
  9. 11:04Classes
  10. 11:32Problem
  11. 12:32Premature generalization
  12. 15:49The fix
  13. 16:12Deep nesting
  14. 17:10Game loop
  15. 18:52Game while loop
  16. 19:43Code map
  17. 20:47Complex boolean expression
  18. 22:31Level of detail
  19. 22:51The developers mind
  20. 24:11Performance
  21. 25:43Lack of tooling
  22. 28:18Missing Const
  23. 30:25Jason Turner
  24. 30:57Software Development Kits
  25. 32:11AI
  26. 34:53Copy
  27. 35:57Disconnect
  28. 41:54General Advice
  29. 42:24More loops
  30. 42:59Vector
  31. 43:25Salaries
  32. 44:08Which is more readable
  33. 45:29Transform if
  34. 47:17Ranges
  35. 51:35Meaningful names
  36. 52:02Questions
  37. 52:31If Statement
  38. 53:34For Loops vs Ranges
~/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.