C#

launchSettings.json not used by Rider

I am switching to Rider from Visual Studio as my IDE recently and I have faced this situation where Rider is not picking up environment variable from launchSettings.json. I would like to share what I learnt. Issue I realized something was wrong while debugging my app where my configurations from appsettings.Development.json were not being picked […]

Sam Lau 
C#

Why you should use early return in C#?

Today, I am going to share a simple technique that can improve the readability of your code: early return pattern. What is early return? In a method, there are usually the happy path (main logic) and the unhappy path (invalid input, invalid operation, etc.). Early return pattern is writing code such that when an unhappy […]

Sam Lau