bytedevAssertion 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
bytedevCyclomatic 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
bytedevThe 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
bytedevTreating 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
bytedev.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
bytedev.NET Niggles (1): Overuse of File.ExistsThis is a post aimed at the slightly more junior .NET developer audience.Sep 13, 2022Sep 13, 2022
bytedevQuickly 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
bytedevWhat 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
bytedevWhat’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
bytedevCode 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