Mhinze - mhinze.com - mhinze.com
General Information:
Latest News:
Simple reads with Entity Framework 4 Mar 2011 | 05:19 pm
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...
Reuse is overrated, then came package management 27 Feb 2011 | 07:47 pm
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. Pro....
Type systems and their advantages 3 Dec 2010 | 06:23 pm
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, specificall...
Easy ways to maximize the value of TDD 3 Dec 2010 | 03:07 am
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...
Focusing on the controller's responsibility 21 Apr 2010 | 01:52 am
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...
JSON Hijacking in ASP.NET MVC 2 14 Apr 2010 | 12:27 am
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...
Serializing models for RouteValueDictionary and later model binding 18 Mar 2010 | 07:47 am
(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 ...
Aggregated specifications 8 Oct 2009 | 11:07 pm
An example from my inversion of control talk involves a message formatter. It applies formatting rules to a string. Instead of doing all the work in the implementation of this interface, the message...
AutoMapper in NerdDinner 6 Jul 2009 | 11:00 pm
Speaking of NerdDinner, Scott asked me to use it to create an AutoMapper example. AutoMapper, the brainchild of Jimmy Bogard, is an object-to-object mapper. What that means is up to you – but we’ll ...
More On Value Objects 20 Feb 2009 | 12:57 pm
A few days ago Dylan Beattie wrote a nice post about value objects. He explains the idea in a more palatable way than my attempt: If it’s not clear how to model a particular element in your model, t...