Reducing Dependency Injection Code Smell: An Introduction

February 10, 2020 by Michael

Dependency Injection is an increasingly popular design pattern that has resulted in the increased use of IoC containers. Unfortunately developers have started to use DI and IoC as a crutch rather than a proper design pattern. This post discuss ways to clean up poor design choices.

2 Comments

Change Tracking with StructureMap and DynamicProxy

January 5, 2019 by Michael

This post shows you how to automate change tracking using run-time aop with DynamicProxy and StructureMap.

One Comment

ANTLR4, .NET Core 2.1, and C#: Using the Visitor

October 16, 2018 by Michael

In the first post in this ANTLR4 series we went over setting up the tooling and tested everything with a simple grammar file.  This post will focus on using ANTLR4 to generate the C# classes need in order to implement a simple visitor. This post will use the grammar file created in the previous post.  […]

3 Comments

Setting Up Your Global Git Config File

September 17, 2018 by Michael

The first things you should do after installing Git on a computer is setup your global username and email config. The git config command can be used to manage these settings.  The –global option allows you to set these values for all repositories while –local limits the value to your current repository. Here are a few common examples: […]

0 Comments

Visual Studio, dependencies, and the Mysterious Yellow Triangle

September 16, 2018 by Michael

If you’ve made significant use of dependencies, odds are you have seen at least one with a small yellow triangle.  Visual Studio will give you enough information to figure out why that triangle is being displayed in some cases.  However, most of the time you’re left wondering what the problem is. Clearly the Visual Studio […]

2 Comments

Updating the PATH Variable in Windows 10

September 12, 2018 by Michael

Various command line tools will ask you to add the path to the binary folder to your system’s PATH variable.  If you’re relatively new to this sort of tooling, you may not know how to do that. Follow the steps below to alter the PATH environment variable in Windows 10: Press the  key Type “advanced system” immediately […]

2 Comments

Setting the CLASSPATH Variable in Windows 10

September 11, 2018 by Michael

If you’re using the Java compiler from the command line or some other tooling that depends on the Java compiler, you may be asked to setup the CLASSPATH variable.  If you’re coming from a .NET background, odds are you haven’t had to deal with this before. Note, you do not always need to modify the […]

0 Comments

ANTLR4, .NET Core 2.1, and C#: Getting Started

August 28, 2018 by Michael

As much as I would like to criticize your decision making skills, I’ve already come to the conclusion to use ANTLR4 myself.  Michael For some reason (valid or not), you’ve decided you need to write a domain specific language using ANTLR4 and the interpreter to go along with it.  As much as I would like […]

One Comment

Windows 10: Fixing Gaps in the Taskbar

August 27, 2018 by Michael

I make pretty extensive use of pinning icons to my taskbar.  After shuffling a few of them around and deleting ones I no longer use, I ended up with blank space where icons once where. Here is an example of the problem: In order to fix this problem I had to open regedit and delete […]

5 Comments

Validating API input in ASP.NET Core 1.1 with FluentValidation

January 14, 2017 by Michael

Writing code to validate input is quite possibly one of the most tedious task ever created. Thankfully we are far from the days of having to manually handle that task.

0 Comments