Blog LogoBlog Logo

Tag: Code Quality

All tags

Setting up Code Coverage in Team City

The project that I'm working on has a rather spotted history for unit tests until now. There would be periods of people actually writing them, but then come...

— 16 May 2015

Code Review: Making a drop down list out of an enum

I’ve come across code like this a couple of times and it is rather odd: IEnumerable<CalendarViewEnum> _calendarViewEnums =...

— 20 Apr 2015

Code Review: FirstOrDefault()

I regularly review the code that I maintain. Recently, I've come across code like this fairly often: someCollection.FirstOrDefault().Id I cannot rightly...

— 09 Apr 2015

Why should you be returning an IEnumerable

I've seen in many places where a method returns a List<T> (or IList<T> ) when it appears that it may not actually really be required, or even desirable when...

— 19 Jul 2011

Dealing with data rounding issues

If you have data coming in from a database, web service or other source external to your application and it contains, say for example, price information then...

— 01 Sep 2010

Test Driven Development By Example

Introduction A lot has been written on the subject of test driven development, and especially on the idea that tests ought to be written first. This is an...

— 28 Mar 2007