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








