Programming

Find Code Hotspots with ndepend

Posted on

One of the constant battles in software development is predicting where problems are in your code. There are lots of ways to cut up your codebase in order to predict where problems are likely to occur; I have been experimenting with some reports over check-in history in Visual Studio Team Services to find files with […]

Programming

Adjusting Your NDepend Rules with CQLinq

Posted on

Having picked up the basics of the new CQLinq definitions in NDepend 4, I decided to start customising some rules to wipe out some false positives being reported in the code base. I think this will be a common scenario, so I’m going to share the exact change, but you’ll find this useful if you […]

Programming

Using NDepend to Get a Grasp of Your Code

Posted on

Whenever I land in a new team and get given a big chunk of source code to familiarise myself with, I like to crack open NDepend and run a full report. In particular, a quick browse through the Dependency Graph and a brief glance at the Abstractness Verses Instability Graph can tell you a lot […]

Programming

Improving Your Code with NDepend and CQL

Posted on

I have been talking a fair bit recently about code quality tools such as Resharper and NDepend. In this article, I will explain how to use one of the features of NDepend to improve your code quality. On of my favourite features of NDepend is the suite of “code query language” tests, which run against […]

Programming

NDepend Contextual Help

Posted on

I’ve talked a couple of times about NDepend recently, in the article NDepend For Beginners. NDpend is jammed full of code analysis tools, but sometimes you need a bit of a hint to tell you what is going on in the various matrix displays and graphs – well now NDepend is getting some improvements to […]

Programming

NDepend for Beginners

Posted on

NDepend is a code-quality tool that integrates with Visual Studio (2008 and 2010… and probably older versions too if you happen work in a museum). Within about 10 minutes of installing NDepend, I had already created a really handy component diagram that pointed out that one of my name-spaces was wrong. I haven’t even properly […]