Assertion Roulette & Eager TestAssertion Roulette is a test smell where it can be difficult to determine which of a number of assertions in a single test is the one that…Oct 17, 2023Oct 17, 2023
Cyclomatic Complexity & C#/.NETCyclomatic complexity is a code metric (integer value 1 or more) used to measure how complex a function/method is.Apr 3, 2023Apr 3, 2023
The God Constant ClassAn anti-pattern I have observed in some .NET projects, though it could equally be relevant in any object-oriented environment, is placing…Mar 6, 2023Mar 6, 2023
Treating Warnings as Errors in .NET projectsCompiler warnings can be an indication of potential problems in your code project. For this reason it can be good practice to treat all…Feb 22, 2023Feb 22, 2023
.NET Niggles (2): When to use First or Single?This might seem remediable to more senior .NET developers however I wanted to address a mistake I often see more junior .NET developers…Sep 13, 20221Sep 13, 20221
.NET Niggles (1): Overuse of File.ExistsThis is a post aimed at the slightly more junior .NET developer audience.Sep 13, 2022Sep 13, 2022
Quickly setup StyleCop for new .NET solutionsStyleCop is an open source tool that can be used within .NET projects to define and enforce code style guidelines in an automated manner.Aug 1, 2022Aug 1, 2022
What not to unit testWriting unit tests is certainly a good software development practice, however there are a number of things we should not actually test when…Jul 25, 2022Jul 25, 2022
What’s a software developer’s job?The purpose of a software developer’s job is primarily to write code that:Jul 25, 2022Jul 25, 2022
Code comment anti-patternsThe following describes some of the various different types of bad code comments and anti-patterns as well as what we can do to improve…Jun 20, 20222Jun 20, 20222