Controller Action Design in MVC

Validate, Act, Translate, and Respond. That’s about it. I’ve been trying to come up with a nice acronym for how to structure code in Actions for some time now, and this is the best I have managed. I wish it spelt a nice word – so if you’ve a better suggestion shout up. What I’m…

2

String.Unformat: I've created a monster

I don’t know if you’re the same, but when coding away I often find myself wishing for a String.Unformat function – call it the evil twin of String.Format. With String.Format I can build up strings like this; var result = String.Format(      “http://{0}:{1}/{2}”,      “localhost”,      “12345”,      “TestPage.aspx”); … which will return “http://localhost:12345/TestPage.aspx”. But…

5

C# "var" Keyword: We Need Your Vote!

Josh Twist is running a vote on the use of the “var” keyword. Get voting! Oh, and make sure you vote “var is for anonymous types only” or he’ll never let me live it down. Ever. I’ll be watching J  

3