Why I love Resharper 3

Learning new language features can be hard. Applying them can be tricky. How does Resharper aid with filescoped namespaces?

December 9, 2021 · 2 min

Arrange, Act, Assert - Why I Still Comment Unit Tests

Using the Arrange, Act, Assert setup in unit tests, why do I still add the comments? Read on to find out.

January 26, 2021 · 4 min

Why I love Resharper 2

Looking at another constructor parameter checking option when passing in an enum value.

July 21, 2020 · 2 min

Beyond Basics - ASP.Net Core Using the Decorator Pattern

Refactoring to use the Decorator Design Pattern to help apply the Single Responsibility Principle.

June 10, 2019 · 5 min

Beyond Basics - ASP.Net Core Adding and Using Configuration

Adding strongly typed configuration settings and injected them through dependency injection.

June 6, 2019 · 6 min

Beyond Basics - ASP.Net Core Adding Caching

Starting the journey of going past the basics of beginner training resources to appy software development practices and design patterns.

June 4, 2019 · 5 min

Playing with C# 7 - Deconstruct

Looking at how newer language features allow for extension of types to add Deconstruct functionality.

October 23, 2018 · 4 min

Mocking the Clock

Reducing the coupling of code dependent on DateTimeOffset

March 15, 2018 · 4 min

Why I love Resharper 1

With every new version of C# a new version of Resharper appears. It teaches me the new language features and how I can write my code in the new way. It’s not always right as the code it converts to can be unmaintainable so you have to be careful. But every now and then it makes me realise why I pay for a great productivity tool. public FeatureController(ApplicationDbContext applicationDbContext) { if (applicationDbContext == null) { throw new ArgumentNullException("applicationDbContext", "Argument cannot be null....

January 19, 2018 · 1 min

Refactoring Kata - 6 Year Code Review

Going through my old repositories on Github made me realise I’d forgotten about a number of coding items I have done in the past. There was one which was a coding Kata originally created by Scott Allen around refactoring. Refactoring is the ability to improve code readability to increase its simplicity and maintainability. If you write code that the rest of your development team can’t understand or spends 10 times as long to understand before they can alter it then it’s failed....

January 16, 2018 · 6 min