December 2008 Entries

ASP.NET MVC

WebForms are the existing technology in ASP.NET for web applications, which have been around since the beginning of ASP.NET. However, despite being mature and having a large developer base they aren’t ‘all that’. It’s been said that WebForms are “web development for VB Developers”, in that the drag ‘n’ drop and double clicking to add an event handler for a button eases the migration from Windows Development to the web. The problem with this is that WebForms brings a state-based system (via ViewState) to the web, that is fundamentally stateless. Added onto this the complex page-life cycle of the WebForms...

posted @ Saturday, December 13, 2008 12:12 AM | Feedback (1)

Linq2JS – A JavaScript library for writing Linq-like expressions

It all started when I was having to convert some C# to JavaScript, so was needing quite a bit of collection manipulation. It’s frustrating going back to lots of for loops when you’ve been blessed with LINQ for a year. So after 20 hours of solid coding one weekend (the first implementation was written in 10 hours with the second 10 tidying things up) I created Linq2JS. I’m very happy with how its turned out, however some things are still lacking (building an expression tree to improve the performance). Over the past 2 weeks I’ve been documenting, writing unit tests...

posted @ Saturday, December 13, 2008 12:12 AM | Feedback (0)

Model View Controller

I’m giving a presentation next week at work about MVC (specifically Microsoft's ASP.NET MVC Framework) so thought I’d dust off the blog and put some of my thoughts down regarding the topic. First off, what is MVC? MVC stands for Model-View-Controller and is an architectural design pattern for developing applications. It’s not specific to the web, as desktop applications can also make use of the design pattern. The basis of MVC is to force the separation of the business logic from the UI. The greatest benefit of this in my opinion is the ability to enable Test Driven Development...

posted @ Thursday, December 04, 2008 8:12 PM | Feedback (0)