Articles

Get Comfy. Take your shoes off. Here you will find some tutorials, discussions, and introductions into the world of modern full stack software development.

image/svg+xml
Unit Testing Exceptions in C# image

January 16, 2020 by Chad

Unit Testing Exceptions in C#

Sometimes there are cases where we want to throw a specific exception in our code. When you are writing your tests, how do you account for this? In this article I will work through examples of how to unit test C# code that's expected to throw exceptions.

Read more
Unit Test Your C# Code Easily with xUnit and TDD image

January 12, 2020 by Chad

Unit Test Your C# Code Easily with xUnit and TDD

Unit testing your C# code has truly never been easier. Today I will introduce how to get up and running and unit testing your C# code in only a matter of seconds with one of the latest testing technologies, xUnit, using a Test Driven Development (TDD) approach.

Read more
Dapper ORM: An Introduction to the Lightning Fast Micro ORM image

December 22, 2019 by Chad

Dapper ORM: An Introduction to the Lightning Fast Micro ORM

If you're looking for a simple, yet powerful object relational mapper (ORM) in your .NET applications, consider using Dapper, a lightning fast, lightweight "micro" ORM from the folks that made StackOverflow.

Read more
A Website Speed Test Using Google PageSpeed Insights image

December 14, 2019 by Chad

A Website Speed Test Using Google PageSpeed Insights

Hi folks, today's article is all about speeding up a website. I will explore using Google PageSpeed Insights, a free website performance testing utility, to identify possible performance issues on my website and see if I can correct them in order to give my users the best and fastest browsing experience possible.

Read more
Entity Framework 6 vs Entity Framework Core 3: Comparing Performance image

December 02, 2019 by Chad

Entity Framework 6 vs Entity Framework Core 3: Comparing Performance

Entity Framework (EF) Core was a complete rewrite from the tried and tested EF6. One of the most touted benefits EF Core has over EF6 is improved performance. Using real benchmarks, I will use worked examples to demonstrate whether Entity Framework 6 or Entity Framework Core performs the best.

Read more
How to Benchmark Your .NET Code Using BenchmarkDotNet image

August 31, 2019 by Chad

How to Benchmark Your .NET Code Using BenchmarkDotNet

Sometimes as developers we’re faced with making a certain piece of code perform faster. We often need to decide which piece of code performs the best. Benchmarking provides us concrete measurements between different pieces of code, so we can make verifiably correct decisions based on performance. In this post, I’ll introduce the BenchmarkDotNet library. This library simplifies the process of benchmarking our .NET code, and provides a bunch of cool features out of the box.

Read more
Entity Framework Performance: 3 Things You Must Consider image

July 20, 2019 by Chad

Entity Framework Performance: 3 Things You Must Consider

I hear it all the time: Entity Framework is slow, Entity Framework can't handle this kind of volume, We need to rip out Entity Framework for regular SQL. In some cases this is necessary, but let me demonstrate a few easy ways to make sure you're eeking the most performance out of your Entity Framework queries.

Read more
Finding All the Permutations of an Array in C# image

June 21, 2019 by Chad

Finding All the Permutations of an Array in C#

Admittedly, I'm a sucker for these kind of coding problems. I recently ran across this problem in particular on the Internet. Given an array of integers, we need to find all the possible permuations. In this article I want to share my C# solution.

Read more