Screenshot_10_26_14__7_52_pm_large

Khalid Abuhakmeh

Software Developer and All Around Nice Guy @AquaBirdConsult

FluentValidation and CascadeMode

Optimizing your validation execution

FluentValidation is easily the best validation framework in the .NET space. I've been using it for several years now, but only realized recently that I could tweak how my validation rules are executed. By utilizing the cascade mode setting I can choose when validation ends.

There are two cascade modes:

  • Continue (the default) - always . . .

Read More

April 01, 2015

Unit Testing With ASP.NET WebAPI UrlHelper

Developing with ASP.NET WebAPI is pretty straight forward, but there are crucial parts of the framework you need to work around to get valuable unit tests. One of the most important part of any web framework is routing, and in WebAPI, routes are resolved using the UrlHelper class. In this post, I'll show you the code necessary to create a . . .

Read More

April 01, 2015

Interview Question : What Is Your Ideal Dependency Injection Tool?

My Interview with Blizzard...during a blizzard

Five years ago, I worked at a credit union CUSO. It is safe to say it was one of the worst places I've worked. During this time, I applied for many positions at other organizations, one of those being Blizzard. It was a long shot, and a novelty submission. I could tell my friends I applied to Blizzard, and if they didn't call me back . . .

Read More

March 29, 2015

The Problem With Secret Project Codenames

Being cool isn't the point

When I started my career as a software developer, I was enthralled with the hollywood notion of a programmer. A shadowy figure in a dark room, only made visible by the light irradiated from their monitor. The barrage of clicks piercing the silence as they typed feverishly to finish their masterpiece; project Thor's Hammer, Hydra, . . .

Read More

March 27, 2015

Integration Tests and NCrunch

Working around the file system

Integration tests are a touchy subject with many developers. Some will argue against them to the death, while other developers depend on them entirely too much. I feel a good test suite has a balance of both unit and integration tests. Integration tests depend on an external resource, in my case, it is normally a file on disk.

I run NCrunch . . .

Read More

March 26, 2015

Create WebAPI UrlHelper Anywhere with StructureMap

The flailing of a WebAPI noob

We are currently in the process of writing a new API using WebAPI. We are also writing a documentation framework called Descriptor. This library allows any developer to describe a chunk of code using a fluent interface, and then later take those descriptions and run them through a formatter. This is to help generate a helpful home endpoint . . .

Read More

March 24, 2015

Disabling Mac OS X Dashboard

The dumbest feature of Yosemite

The widgets dashboard has to be the dumbest feature of Mac OS X. I use the magic mouse and gesture between virtual desktops, and swiping right one too many times leaves me staring at this useless and dated mess of widgets.

Silvrback blog image

To disable this feature, perform the following directions:

  1. Open up System Preferences...
  2. Click Mission Control
  3. Select Off . . .

Read More

March 20, 2015

Archive

All Categories: c#(1) home