Despagghetifying code with NDepend
summary
NDepend plugs into Visual Studio, runs a one-time analysis to build an in-memory model, and uses CQLinq queries plus the dependency matrix and graphs to spot long dependency lines and cohesive squares inside a single God class of tens of thousands of lines. The team elevates method-level links to class-level types, performs compiler-safe refactoring over two to three weeks of mob programming (five people), finds dead and duplicated code, preserves behavior, and ends with much smaller, easier-to-reason-about classes.
AI-written summary · about
chapters (13)
- 0:00Start
- 0:17Jim Pelletier
- 6:59Overview
- 9:55Dashboard
- 10:58The Queries and Rules Explorer
- 12:55Trend Metrics
- 13:44Export To Graph
- 22:39Tree Map
- 30:30Dependency Matrix
- 40:13Base Class
- 48:21State Base Class and Common Dependencies
- 52:56Did the Functionality of the Code Change
- 56:05Indirect Dependencies
related talks
58mGetting a grip on your code dependencies
53mTools and practices to help you deal with legacy code
53mCode Foresting: Automating Architecture Governance for .NET Teams
28mI've Fallen Into a Large Codebase and I Can't Get Up!
38mEffective Usage Analysis: Boosting Developer Productivity Via Innovative, Noise-reduced Vulnerability Analysis
43mOvercoming Broken Window Syndrome Code Verification Techniques for NET Develop
57mDealing with Medusas in your Codebase.
53mEnforce Coding Standards in .NET: Overcome Broken Window Syndrome
