NDepend Blog

Improve your .NET code quality with NDepend

Announcing the Singleton Challenge

September 21, 2017 2 minutes read About a month ago, I made a post about what the singleton pattern costs you. Although I stated my case in terms of trade-offs...
Erik Dietrich September 21, 2017

Let’s Build a Metric: Wrapping Up

April 7, 2016 1 minutes read In the penultimate post in the metrics series, I explained the reasoning for winding down this series.  I also talked about performing one last...
Erik Dietrich April 7, 2016

Let’s Build a Metric Reconsidered

February 18, 2016 2 minutes read If you’ve been keeping track, you’ll noticed that it’s been a while since the last post in this series.  In case you’d forgotten or...
Erik Dietrich February 18, 2016

Let’s Build a Metric: Global and Local Scope

December 24, 2015 4 minutes read Last time in this series, I began an exploration of how a method might be impacted by the scope of the variables that it...
Erik Dietrich December 24, 2015

Let’s Build a Metric: Using CQLinq to Reason about Application State

December 3, 2015 4 minutes read I’ve been letting the experiments run for a bit before posting results so as to give all participants enough time to submit, if they...
Erik Dietrich December 3, 2015

Let’s Build a Metric: Incorporating Results and Exploring CQLinq

November 19, 2015 4 minutes read It turns out I was wrong in the last post, at least if the early returns from the second experiment are to be believed....
Erik Dietrich November 19, 2015

Let’s Build a Metric 7: Counting the Inputs

November 5, 2015 2 minutes read Over the last two Let’s Build a Metric installments of this series, I’ve talked about different ways to count lines of code and about...
Erik Dietrich November 5, 2015

Let’s Build a Metric 6: Cyclomatic Complexity Explained

October 15, 2015 3 minutes read In the last installment of this series, I talked a good bit about lines of code. As it turns out, the question, “what is a...
Erik Dietrich October 15, 2015

Let’s Build a Metric 5: Flavors of Lines of Code

October 1, 2015 1 minutes read The last episode of this series was heavy on theory, so let’s balance it out a bit with some applied science. The lofty goal...
Erik Dietrich October 1, 2015

Let’s Build a Metric 4: Science and Experiments

September 10, 2015 5 minutes read Last time around, I promised a foray into Newtonian mechanics, so I might as well start with that.  This is the equation for gravitational...
Erik Dietrich September 10, 2015

Let’s Build a Metric 3: Compositeness

August 20, 2015 5 minutes read Last time, I talked through a little bit of housekeeping on the way to creating a metric that would be, uniquely, ours.  Nevermind the...
Erik Dietrich August 20, 2015

Let’s Build a Metric 2: Getting the Units Right

August 13, 2015 5 minutes read Last time in this series, there was definitely some housekeeping to accomplish.  I laid the groundwork for the series by talking a bit of...
Erik Dietrich August 13, 2015

Let’s Build a Metric 1: What’s in a Metric?

August 6, 2015 5 minutes read A while back, I made a post on my blog announcing the commencement of a series on building a better, composite code metric.  Well, it’s...
Erik Dietrich August 6, 2015