Exception Handling and Logging basics
Hey kids!! Let's go over some basics for exception (error) handling and logging. This is legit the hill I will die on when I'm debating if code is good or not. If the code does not have error handling and GOOD logging, it's not ready for production. When you add error handling and logging to your code, you make it a million times easier to pinpoint the actual error instead of having to dig around and guess. So, how do we know if our code errors? We add Try Catch Finally
Jan 14, 20223 min read


The Great Debate - Single or First
Ah, the joy of having options! I have definitely had some spirited debates regarding which method to use .First() or .Single() I am...
Mar 10, 20212 min read


Switch Statement Fun
Hey kids! Let’s have a chat about how to properly use a switch statement. We are only able to use a switch is we are comparing a constant variable. Meaning - the value you are comparing must already be evaluated. There is not a limit to the amount of cases your constant can match, however it is a good idea to always list a default value in case the expected constant value comes through as something different. Always account for edge cases in your code. Let’s use our friend,
Jan 30, 20213 min read


NET MVC vs NET Core
I've been asked a few times if a new developer should focus on learning .NET MVC or .NET Core. The simple answer is: both. .NET Core is a framework, whereas MVC is a code architecture pattern. You can create a project / solution in Core and use the MVC pattern for your code. However, if you choose to begin a project with a base MVC project file, you cannot use the Core framework for it. MVC is Model View Controller pattern. A great resource to learn more from is Microso
Nov 6, 20202 min read


LINQ
LINQ started as a simple way to query SQL data through code
Aug 4, 20202 min read


Let's talk Interpolated Strings
Microsoft - An interpolated string is a string literal that might contain interpolation expressions.
Apr 19, 20182 min read






