Author Archives: Matt

Simple reads with Entity Framework

This works nicely for quick reads.  Requires no mappings or any of that junk. Just a DataReader shaped to a type. Edit: Because this is my first day to ever work with EF, my first attempt at this was more … Continue reading

Posted in Tools | 2 Comments

Reuse is overrated, then came package management

Reuse is overrated.  True story: a team building a system.  They decide that one chunk of code might be valuable in another project or two.  So they extract it into a library and open source it. Project complete, team reorganizes … Continue reading

Posted in Agile, Tools | 7 Comments

Type systems and their advantages

Typing is not the bottleneck.  Neither is typing. If you’ve been a programmer sometime in the last fourteen billion years you’ve noticed that there’s this conversation about type systems, specifically about comparing static type systems to dynamic type systems. Dynamic … Continue reading

Posted in Deep thoughts | 8 Comments

Easy ways to maximize the value of TDD

Before we’ve made it pass the first time, a failing test tells us what code to write. When it fails later, it can tell us what we broke.  Failing tests alert us to regressions before we integrate. A test is … Continue reading

Posted in TDD | Leave a comment

Focusing on the controller's responsibility

The following is an excerpt from ASP.NET MVC 2 in Action, a book from Manning appearing in bookstores in May.  The early access (MEAP) edition is available now on http://manning.com/palermo2.  Authors include Jeffrey Palermo, Ben Scheirman, Jimmy Bogard, Eric Hexter … Continue reading

Posted in ASP.NET MVC | 6 Comments

JSON Hijacking in ASP.NET MVC 2

The following is an excerpt from ASP.NET MVC 2 in Action, a book from Manning appearing in bookstores in May.  The early access (MEAP) edition is available now on http://manning.com/palermo2.  Authors include Jeffrey Palermo, Ben Scheirman, Jimmy Bogard, Eric Hexter … Continue reading

Posted in ASP.NET MVC | 3 Comments

Serializing models for RouteValueDictionary and later model binding

(tl;dr : The bits, serializing to IDictionary<string, object> for RouteValueDictionary) We have several spots in our ASP.NET MVC 2 app that need to serialize an object into a RouteValueDictionary so that, in a subsequent request, it can be inflated, resurrected … Continue reading

Posted in ASP.NET MVC | 6 Comments