Posts from ‘ASP.NET MVC’
And so it’s come to this. Finally. We’ve created routes, controllers, actions, actionlinks, views, babies, regrets, fish, etc. Still, it feels like we’re missing something, doesn’t it? Something important. Like, an emotion. Or, a functioning database.
Let’s face it. Developers aren’t the most fashionable folk. We can’t dress ourselves, we don’t kiss well, we don’t understand human interaction with other humans, touching feels complicated to our fingers, etc. As such, when it comes to designing and laying out our webpages, we’re not the most graceful fellows.
In my last post, we created a really ugly MVC Master Page. I mean, really ugly. Like, the kind of ugly that melts meat off of bones. Or, the kind of ugly that makes Craigslist look like it fits into the CSS Zen Garden. Or, the kind of ugly that, well, eh, I think you catch my drift.
Yesterday, we wrote approximately twenty-two lines of C#. That was fun. Today, we’ll start fiddling around with the html in our Site.Master page. That will also be fun. Or maybe that will also be not fun. Who knows.
Since we’re taking a quasi-TDD approach to this project of ours, we should create our tests as an extension of the design work that we’ve slaved over thus far, and not as a response to the site functionality that we’ve already created (that’s why we haven’t created anything yet, or, at least, that’s my excuse!).
Okay. A word of warning. We’re about to start writing code. Like, real code. In particular, today, we’ll be writing some C#. I’ll try my best to keep it simple, but, inevitably, I’ll probably say something stupid or confusing–something that requires some contextual understanding or some knowledge of a nerdy inside joke, and that may cause frustration for the developers out there that are not yet intimately acquainted with C#. I apologize ahead of time. If it’s any consolation, I suggest that you buy this excellent C# book. I bought it, and look at me now. I have a blog. And a dog. And a place to live.
Today, in our MVC project, we’re going to be creating four url routes and four webpages. Each of the four new routes, as you might expect, point to one of our four new webpages.
Ah, I wish relationships had source control. And school work. And conversations with my boss. But, alas. Life is more complicated than software (pending review), and, as such, life, unlike software development, requires the statelessness of happenstance and, thus, unmendable personal and professional screw-ups.
Today should be easy. Like, “eating cake” easy. Or, “sleeping” easy. In less than five minutes, we’ll be creating, unit testing, and running an MVC Web Application in Visual Studio 2010.

