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
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
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