Lately I’ve been working with OpenRasta to create some RESTful services for .NET. I absolutely love it. It has built in DependencyInjection, but also allows you to wire up Castle or Ninject if you’d prefer. The one thing I didn’t like about it was there was no NuGet package. Additionally, each time I created a ...Read More
I’ve been using TFS at work for about the past 8 months. Prior to that, I’ve used other source controls such as Seapine’s Surround SCM, Visual Source Safe, and Git. I’ve used Surround and VSS in production environments, and Git for personal projects. So far, here are some areas that I think TFS is lacking ...Read More
I’ve been working on some tests today, nothing super fancy, just some basic null tests. I originally had the following code: if(actualEmployeeSize != null) l.EmployeeSize = actualEmployeeSize.Parse(default(int)); All I wanted to do was write 3 tests: Test if actualEmployeeSize is null, then l.EmployeeSize should be 0 If actualEmployeeSize can’t parse, then l.EmployeeSize should be 0 ...Read More
The best advice I ever got for debugging came from my grandma. She never got on the internet. She never wrote a computer program, and to the best of my knowledge never touched a computer. About the closest she ever got was when she’d come visit, the guest bed was about 7 feet away from ...Read More
Today I was working on a project that is using EF Code First for its DAL. I was moving records from one database to another, and there was one table in particular that I needed to update that had a compound key (GroupId and LeadId.) I created the object and then went into model builder ...Read More
A coworker of mine has created a great new assertion library for Javascript based on the the .NET Should library.
I just got moved to a new project, and as part of one of my first tasks I needed to add an assembly to the project. I knew we had done some Nuget packages so I right clicked on my project and chose “Add Library Package Reference” When I clicked on this, after about 3 ...Read More
I’m going to take a break from my normal tech blogs to post this. I’ve created an iCal file for reading the entire Bible in one year. It’s based on Discipleship Journal’s Bible reading plan. First things first, here is the iCal file. You should be able to import it into any iCal capable calendar ...Read More
Going from do { }while (x == true); to while(x == true) { } Should simply change it from always executing the first time, to only when the condition is true. However, going to while(x == true); { } will create an endless loop (notice the semicolon)
A couple weeks ago I was on the Google Pilot website There was a form to fill out if you wanted to be part of the Chrome OS pilot project. My first thought was “Hey, free laptop… let me fill that out.” I honestly wasn’t thinking more than that. I am a bit of a ...Read More