Are Codebehind Files in ASP.NET MVC Evil?

Interesting discussion about the benefits of codebehind files in ASP.NET MVC.

While keeping the codebehind files might tempt you to put code that belongs to the controller on to the view, I’m not worried about that. In the ASP.NET work I’ve done in the past, I’ve mostly stuck to pushing any logic other than formatting out into a separate class that communicates with the business layer – a controller class, effectively. I’ve seen a lot of code where the codebehind was chock-full of business logic, so I suppose the same mistake could be made moving to ASP.NET MVC.

Advertisements

Stack Overflow – I’m impressed!

I’m impressed with Stack Overflow, the new programming Q&A site. You can find me on there as Mark Smith. I’ve answered just one question, but not received any ‘ups’ or ‘downs’ yet.


Amazon SimpleDB sign-up

After four months, I’ve finally got an Amazon SimpleDB account. I’m planning on using SimpleDB to store the activity logs of users on my next ASP.NET project, which will be a variant on the hackneyed ‘wisdom of the crowds’ theme.