Refactoring and Code Smells.
summary
Catalog of concrete smells and fixes: enumerates common smells (lazy/god methods, middleman, long parameter lists, contrived cyclomatic paths) and demonstrates tooling—ReSharper refactor menus to extract class and remove dead branches—plus concrete refactor patterns like the value object for emails, grouping dates to eliminate data clumps, extension methods for readability, and preferring dependency injection and C# nullable features over ad hoc null checks. Claims refactors reduce maintenance cost but require time and careful staged changes.
AI-written summary · about
chapters (11)
- 0:00Intro
- 1:25Smells and 7 Gold Virtues
- 6:09Method-level Code Smells
- 20:14Class-level Code Smells
- 28:34General Code Smells
- 34:21The Simple Case of Special Strings
- 37:52Join Data that want to Go Together
- 40:30Readability
- 42:50Every Class Begins with a "new"
- 45:22Dependency Injection
- 47:32Null Pointers








