#code

Have you ever needed to modify a file locally without committing the changes to the remote repository?

The binary search algorithm quickly searches a large array of numbers, it’s often referred to as divide and conquer.

Continuous Integration (CI) and/or Continuous Delivery (CD) is the norm on software projects these days. There are many build servers such as Azure DevOps, Team…

Below is a collection of tools, libraries, and resources I commonly use.

Each engineer defining a new string column decides: Do I use nvarchar or do I use varchar?

Changing a React input value from vanilla Javascript is not as simple as you might think.

The [FromServices] attribute allows method level dependency injection in Asp.Net Core controllers.

Microsoft is adding a new feature to C# 8 called Nullable Reference Types. Which at first, is confusing because all reference types are nullable… so how this di…

Naming is subjective and situational, it’s an art, and with most art, we discover patterns. I’ve learned a lot through the reading of other’s code. In this arti…

There’s a heated debate around single statements and whether they should have curly braces or not.

Understanding code is the first step to modifying it.

Codifying the secret sauce is instrumental in writing maintainable and successful applications.

Memory management in modern languages is often an afterthought. For all intents and purposes, we write software without nary a thought about memory. This serves…

Your code reflects neither your beliefs, nor your upbringing, nor your character.

In C# the question mark has 5 meanings as of C# 8.

Have you had to compare two collections and execute some logic based on whether the item is in the source collection, in the comparing collection or in both? Ye…

At some point in an application’s development, usually, fairly early on, you realize the application is slow. After some research, the culprit is, unnecessarily…

If you must run code in a constructor. I’d look for a different way, but if you must, here’s one way.

This was one of the more frustrating issues with Angular 2/4/+. It’s not an issue with Angular 2/4/+ per se, but with how webpack bundles the supporting HTML fi…

For nearly 50 years, the switch statement (also known as the case statement) has been an integral part of programming. In recent years, however, some are claimi…

Writing software is a battle between complexity and simplicity. Striking balance between the two is difficult. The trade-off is between long unmaintainable meth…

I’ve been on my project for over a year and it has significantly grown as an application and in data during the year. It’s been nonstop new features. I’ve rarel…

In a recent conversation, a friend mentioned he creates proof of concepts and then discards them after testing their viability. I’ve done the same in the past.…

At some point an application needs authorization. This means different levels of access behave differently on a web site (or anything for that matter). It can b…

A great code review will challenge your assumptions and give you constructive feedback. For me, code reviews are an essential part in growing as a software engi…

Most of us probably don't think about the developer who will maintain our code. Until recently, I did not consider him either. I never intentionally wrote obtus…

Have you ever had to encrypt data in the database? In this post, I’ll explore how using nHibernate Listeners to encrypt and decrypt data coming from and going i…

One of the weaknesses of Entity Framework 6 Code First is the lack of support for natively calling database constructs (views, stored procedures… etc). For thos…

The problem is a the nHibernate’s `CreateSqlQuery` needs a complete sql string to be created, but you can’t create a string until you’ve evaluated the parameter…

In the Visual Studio 2012 version of Crystal Reports 13 there is a threshold that throttles concurrent reports, this also includes subreports, to 75 reports acr…

There is an underlining philosophy in this system that nulls are bad. In most cases where a null can be generated an exception is thrown. At first I did not see…

To use a runtime type with an IOC container like StructureMap to find a generic implementation, create the generic type using `MakeGenericType` and then retriev…