Khalid Abuhakmeh

Software Developer and All Around Nice Guy @AquaBirdConsult

Using FluentValidation With WebAPI and Dependency Injection

I've always been a huge proponent of FluentValidation and will continue to be. I don't rarely make technology choices before starting a project, but this library has become so automatic that I don't even flinch to add it. So we started a new WebAPI project, and I wanted to use FluentValidation as the foundation of all validation . . .

Read More

March 03, 2015

Fixing WebAPI's Null Parameter Value and Validation

I've always been an ASP.NET MVC fan, but had very limited exposure to it's fraternal twin ASP.NET WebAPI. While they look the similar, WebAPI has some interesting quirks that can make the experience of transitioning from one to the other a bit annoying. One of those annoyances centers around model binding. I subscribe to the . . .

Read More

March 02, 2015

From Vision To Virtual Reality

The struggle towards realization

I'm always surprised when I sit down to draw an image. The image is so clear in my mind's eye, but on paper it is a deranged train-wreck of scribbles fueled by a frustrating lack of skills. On the other hand, watching a masterful artist draw their vision can be mesmerizingly effortless. The difference between an artist's drawing . . .

Read More

March 01, 2015

Three Ways To Test Around Entity Framework

I'm planning on giving a quick talk to my team members about how to test around Entity Framework: That includes unit testing and integration testing. This post describes three scenarios and their pros and cons.

The DbContext

Every Entity Framework project starts with a DbContext. In this example, our DbContext looks like this.

public class  . . .

Read More

February 25, 2015

Creating a SQL Database If It Does Not Exist Using C#

Especially if you aren't using Entity Framework

Our team is in the midst of a big project, and while we decided to use Entity Framework as our ORM we did make the decision not to use the code first migrations in Entity Framework. Instead, we chose to use FluentMigrator. It mainly had to do with the Entity Framework feature of storing the model in the database in the migration history . . .

Read More

February 25, 2015

Programming The Blink(1) with C#

Blink and you'll miss it

I recently purchased the Thing M Blink(1). It is a USB powered micro-controller that powers two independent LED lights. Described by Thing M as the following:

blink(1) is the world’s best indicator light, designed to give you glanceable notice of anything on your computer or the internet.

I was stunned by the similarities to the project my team . . .

Read More

Posted in: c#

February 22, 2015

Fixing Bugs: Being A Human Profiler

Empathy is the key

One of my favorite shows over the last several years has been Hannibal. On the show, the main character Will Graham is a FBI profiler with the unique ability to empathize with killers, no matter how psychopathic they may be. I feel fixing bugs requires the same ability.

The better you can understand the individual, the more you can reason . . .

Read More

February 15, 2015


All Categories: c#(1) home