How to save time…

Recently while working on a new feature with another member of the team that I’m on, a little bit of controversy came up. Part of the new feature required that we store a time of day. Now if we were using SQL Server 2008 there wouldn’t be a problem as there is a data type that is perfectly appropriate for storing time, it’s called time. But our environment is currently using SQL Server 2005, so we have to compromise.

posted by: tommy.hanks @ 6/21/2010 11:40 PM — filed under programming  |||  Comments?
loading...
Comment Entry


Making Good…

A few weeks ago I said that I would be converting my blog to MVC… Well today (actually yesterday) I made good on that promise. Tombatron.com is now an MVC website. The website still remains and probably will always be a work in progress. As always the source code is completely open and viewable to the public. You can find the source here.

posted by: tommy.hanks @ 5/24/2010 4:03 AM — filed under programming  |||  Comments?
loading...
Comment Entry


Getting Started with Ninject 2.0 and ASP.NET MVC 2.0

Let’s face it, dependency injection makes sense when you want to write a highly testable application. Since one of my goals with the Tombatron website was to have it as testable as possible, I decided that I too would add dependency injection. For Tombatron I chose Ninject. Ninject was chosen for two reasons. First, cool name huh? Second, once you have Ninject setup actually injecting the dependencies is a snap! In this post I will cover the basics of implementing Ninject with your ASP.NET MVC web application and then cover how to perform some basic unit testing of your new implementation.

posted by: tommy.hanks @ 5/17/2010 9:32 PM — filed under programming  |||  Comments?
loading...
Comment Entry


ASP.NET MVC: Dynamically Generating Forms

When working with ASP.NET Web Forms adding controls to a page at runtime isn’t really a big deal. But when you switch over to MVC the concept of a control evaporates and you have to get a little creative. One option is to revert to a non-dynamic solution and statically define the definable settings. But that’s no fun. The other option (and what I’ve done) is to create your very own HTML helper that will generate a form for you. That’s what I’ll be going over today.

posted by: tommy.hanks @ 4/25/2010 1:57 PM — filed under programming  |||  Comments?
loading...
Comment Entry


ASP.NET MVC: The Story So Far…

My previous entry ended with my saying that I would be migrating Tombatron.com to the ASP.NET MVC framework. I figured that I’d post some lessons learned every now and then so that others can learn from my experiences. I’ve started working on the migration and I must say that I’m actually surprised at the progress I’ve been able to make in just a few hours. The biggest hurdle I had to jump over today was “Routing”...

posted by: tommy.hanks @ 4/24/2010 4:10 PM — filed under programming  |||  Comments?
loading...
Comment Entry