Khalid Abuhakmeh

Software Developer and All Around Nice Guy @AquaBirdConsult

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

Using An ExpressionVisitor To Inspect A C# Expression

I was working with Justin Rusbatch today on a really awesome piece of code to be seen in a later blog post, but we ran into an interesting problem. We needed to know whether an IQueryable was already ordered or if it was not. After going through many iterations, Justin found the gem known as an ExpressionVisitor.

This class is designed to be . . .

Read More

March 19, 2015

The Thin Line Between Constructive and Negative Criticism

I would describe my personality as a "half-glass empty dreamer". What the heck is that? It means not being content with what has already been done, and constantly pushing myself and others to be better. During that push to be better, a lot of criticism is thrown around. I criticize code, actions, process, behavior, and anything else . . .

Read More

March 10, 2015

Null Reference When Initializing A C# Object

The training wheels come off, and we fall down

I was helping another developer today, and we noticed something strange happening. We were initializing an object, and it was throwing a null reference exception right off the bat.

using System;using System.Collections.Generic;public class Program{ public static void Main() { var example = new TestClass { Name = "Khalid Abuhakmeh",  . . .

Read More

March 09, 2015

New Silvrback Blog Post With Alfred Workflow

For the Mac users, sorry PC

I write a significant amount and it can be time consuming, so anything I can do to reduce "time to post" helps. I am also a big fan of Alfred, a launcher for Mac users. So decided to create a workflow for getting to a new post.


The workflow uses the "blog" keyword to open up the articles page on your Silvrback account via . . .

Read More

March 06, 2015


All Categories: c#(1) home