Debug It!

If there’s one thing I like about programming computers, it’s the ability to tell a machine exactly what to do. –insert Skynet reference here– With that said, I wanted to learn some more tips, tricks and techniques to figure out … Continue reading 

Posted in Best Practices, Book Review, Development, Testing | 2 Comments

Working With Assertions Made on Arguments in Rhino Mocks

  Today when modifying what we call an “order notifier” (essentially observers that are notified when an order is placed), I was having trouble figuring out why my test was failing. The project is written in C# and this test … Continue reading 

Posted in Best Practices, NUnit, RhinoMocks, Testing | 7 Comments

One Year of Production ASP.NET MVC

Last week marked the one year anniversary our team’s first ASP.NET MVC application in production. We really have two different types of production. Internal and external. While an internal application might get used by 2 to 100 people, our external … Continue reading 

Posted in ASP.NET MVC, Development | 6 Comments

Why is CruiseControl.Net Hiding My Test Results?

Some time ago, I noticed a CruiseControl.Net build report with thousands of unit tests passed, zero failed and a dozen or so skipped, suddenly showing that no tests were run: I immediately thought somebody did something really bad. After some … Continue reading 

Posted in Continuous Integration, NUnit, Testing | 1 Comment

What is Projection?

I think there’s great benefit in not only knowing how to design your code to use common patterns but also to be able to speak about them clearly and concisely to others. If I mention that the problem sounds like … Continue reading 

Posted in Communication, LINQ, Reading Code | 10 Comments

Unique Keys versus IDs in Web Applications

An ID is a fine way to uniquely identify an object, the common usage is also very user un-friendly. A while back I was watching a presentation by Jeffrey Palermo on Community For MVC.Net, then later at a live presentation … Continue reading 

Posted in Best Practices, Development | 9 Comments

Unit Testing Simple ASP.NET MVC Controllers

I have created enough simple projects using ASP.NET MVC with unit tests to notice a very helpful pattern. The following is a sample of a test fixture using RhinoMocks and NUnit to test a controller. 1: [TestFixture] 2: public class … Continue reading 

Posted in ASP.NET MVC, Development, DRY, Moq, NUnit, RhinoMocks | 6 Comments

How I Approach a Defect

Lately I’ve been tracking some of the steps I go through in a given day or week. I was fixing a bug the other day when I decided that I should write down all the mental notes I refer to … Continue reading 

Posted in Best Practices, Continuous Improvement, Development, Testing | 2 Comments

Reading Code, Spark’s Once Attribute

For those who don’t know what Spark is… Spark is an open source view engine for Castle’s MonoRail Project (version 2.0 just recently released!) and ASP.NET MVC. The creator of Spark, Louis DeJardin, came up with the project in a … Continue reading 

Posted in ASP.NET MVC, Open Source, Reading Code, Spark | 1 Comment

SEO Tips for Developers : Site Structure

Continuing in this series of tips for improving your search engine goodness, we’re going to take a look at some tips to designing the structure of your site so that it is friendly for our robot/spider friends. Easy to Read … Continue reading 

Posted in Best Practices, SEO | 8 Comments