Schoolboy Error Of The Day

This dumb mistake just cost me an hour spelunking around in the debugger: var status = source.Substring(source.LastIndexOf("/" + 1)); (where source is e.g. "http://foo.com/status/all-is-good") Fortunately the ramifications were picked up in the acceptance tests,

MVC - Where To Put Business Logic?

I just had an email from a friend asking where business logic should go when using MVC - the controller or the model. I thought I'd share my reply: I think asking whether the business logic should go in the