Successfully reported this slideshow.

Advanced Code Analysis In .NET

5,171 views

Published on

The code samples from the session are on GitHub: https://github.com/ruthlesshelp/Presentations

Published in: Technology, Business

Advanced Code Analysis In .NET

  1. 1. Advanced Code Analysis in .NET Stephen Ritchie July 10, 2012Stephen D. Ritchie – Senior Consultant – Excella Consulting, Inc., 2300 Wilson Blvd, Suite 630, Arlington, VA 22201 – 703.840.8600 – http://excella.com
  2. 2. BlueprintStephen D. Ritchie 2
  3. 3. ToolboxStephen D. Ritchie 3
  4. 4. Da Vinci Code … AnalyzerStephen D. Ritchie 4
  5. 5. Code AnalysisStatic versusStephen D. Ritchie 5
  6. 6. Static AnalysisStephen D. Ritchie 6
  7. 7. But wait …Stephen D. Ritchie 7
  8. 8. 1940 Tacoma Narrows Bridge• Video – http://archive.org/download/SF121/SF121_51 2kb.mp4Stephen D. Ritchie 9
  9. 9. Static AnalysisSource VisualizationsCode ChecksAssembly Metrics DetectionsStephen D. Ritchie 10
  10. 10. Dynamic Analysis Visualizations Checks Metrics DetectionsStephen D. Ritchie 11
  11. 11. Code Analysis: Objection 1 Sweating the small stuff Nitpicking Useless “Don’t make the same mistake once.”Stephen D. Ritchie 12
  12. 12. Code Analysis: Objection 2 Not worth the effort Low ROI No Bandwidth “Crawl, Walk, Run”Stephen D. Ritchie 13
  13. 13. Code Analysis: Objection 3 No authorization Forbidden Can’t Fix Issues“Speak truth to power.”Stephen D. Ritchie 14
  14. 14. Blueprint 1 Analyze 2 Monitor Improve 3Stephen D. Ritchie 15
  15. 15. Toolbox FxCopDetectionsChecks Visual Studio http://blogs.msdn.com/b/codeanalysis/Stephen D. Ritchie 16
  16. 16. Toolbox StyleCopDetectionsChecks http://stylecop.codeplex.com/Stephen D. Ritchie 17
  17. 17. Toolbox ReSharper http://www.jetbrains.com/resharper/DetectionsChecks Gendarme http://www.mono-project.com/GendarmeStephen D. Ritchie 18
  18. 18. The Master CraftStephen D. Ritchie 19
  19. 19. Toolbox SimianDetections http://www.harukizaemon.com/simian/Stephen D. Ritchie 20
  20. 20. The Master Craft Duplicates Finder .NET http://www.jetbrains.com/teamcity/ Clone Doctor Semantic Designs http://www.semdesigns.com/Products/Clone/Stephen D. Ritchie 21
  21. 21. Dynamic Analysis Code CoverageStephen D. Ritchie 22
  22. 22. Toolbox dotCover http://www.jetbrains.com/dotcover/Stephen D. Ritchie 23
  23. 23. Toolbox Open Cover http://nuget.org/packages/OpenCoverStephen D. Ritchie 24
  24. 24. The Master Craft http://www.ncover.com/Stephen D. Ritchie 25
  25. 25. Dynamic Analysis Sampling InstrumentationStephen D. Ritchie 26
  26. 26. Toolbox PerformanceStephen D. Ritchie 27
  27. 27. Toolbox Performance http://www.jetbrains.com/profiler/Stephen D. Ritchie 28
  28. 28. The Master CraftStephen D. Ritchie 29
  29. 29. The Master Craft Memory Queries Logging SecurityStephen D. Ritchie 30
  30. 30. Static AnalysisSource VisualizationsCode ChecksAssembly Metrics DetectionsStephen D. Ritchie 31
  31. 31. The Master Craft Code QualityVisualizations http://www.ndepend.com/ChecksMetricsDetections http://www.lattix.com/Stephen D. Ritchie 32
  32. 32. Hanselman’s Placemat http://bit.ly/LwKfwKStephen D. Ritchie 33
  33. 33. Shameless Self-promotion http://amzn.to/v8TD8EStephen D. Ritchie 34
  34. 34. Stephen’s Contact Info• Twitter: @ruthlesshelp• Email: stephen.ritchie@excella.com• Blog: http://ruthlesslyhelpful.net• LinkedIn: http://www.linkedin.com/in/sritchieStephen D. Ritchie 35

×