Comparing Moq to Rhino Mocks
UPDATE: I should have entitled this “Comparing Rhino Mocks and MoQ for State Based Testing”. I tend to prefer state-based testing over interaction based testing except in the few cases where it is absolutely necessary or makes the test much cleaner. When it is necessary, it is nice to have interaction based testing available. So my comparison is incomplete as I didn’t compare interaction based testing between the two frameworks.
Read MoreIs Pizza Brain Food?
My family and I recently moved into our new home after a two month stay in temporary housing. One of the perks of moving is when your stuff is delivered from storage, it feels like Christmas again. “Oooh! Look at all the boxes I get to unwrap. Hey! I have a Stereo just like this one!”.
Read MoreA Few Notes About The MVC CodePlex Source Code Release
Whew! I’ve held off writing about MVC until I could write a non-MVC post in response to some constructive criticism (It’s not just Sean, Jeff mentioned something to me as well). Now that I’ve posted that, perhaps I’ve bought myself a few MVC related posts in a row before the goodwill runs dry and I have to write something decidedly not MVC related again. ;)
Read MoreASP.NET Routing Debugger
UPDATE: I’ve added a NuGet package named “routedebugger” to the NuGet feed, which will make it much easier to install.
Read MoreUsing Routing With WebForms
UPDATE: I updated the sample to work with the final version of ASP.NET Routing included with ASP.NET 3.5 SP1. This sample is now being hosted on CodePlex.
Read MoreThoughts on ASP.NET MVC Preview 2 and Beyond
At this year’s Mix conference, we announced the availability of the second preview for ASP.NET MVC which you can download from here. Videos highlighting MVC are also available.
Read MoreBack From Mix Back To Reality
You don’t so much return from Las Vegas as you recover from Las Vegas.
Read MoreThe Cost Of Breaking Changes
One interesting response to my series on versioning of interfaces and abstract base classes is the one in which someone suggested that we should go ahead and break their code from version to version. They’re fine in requiring a recompile when upgrading.
Read MoreVersioning Issues With Abstract Base Classes and Interfaces
Eilon
Lipton
recently wrote a bit about context objects in ASP.NET
MVC
and in an “Oh by the way” moment, tossed out the fact that we changed
the IHttpContext
interface to the HttpContextBase
abstract base
class (ABC for short).
Abstract Base Classes Have Versioning Problems Too
This is part 2 in an ongoing series in which I talk about various design and versioning issues as they relate to Abstract Base Classes (ABC), Interfaces, and Framework design. In part 1 I discussed some ways in which ABCs are more resilient to versioning than interfaces. I haven’t covered the full story yet and will address some great points raised in the comments.
Read MoreASP.NET MVC Update
By the way my blogging frequency has declined, you can guess I’ve been quite busy here at Microsoft preparing for the next release of ASP.NET MVC.
Read MoreBlocking Direct Access To Views in ASP.NET MVC
UPDATE: I improved this based on some feedback in my comments.
Read MoreTell Me Your Unit Testing Pains
So A Model, A View, and a Controller Walk Into a Bar
At the risk of embarrassing myself and eliciting more groans, I am going to share a joke I made up for my Code Camp talk. I was inspired to come up with some humor based on Jeff’s Sesame Street Presentation Rule post. I fully understand his post was addressing something deeper than simply telling a gratuitous joke in the presentation.
Read MoreCome Work With Me And Other Great People
The ASP.NET and Silverlight team are hiring! Brad Abrams (who happens to be my “grand-boss” as in my boss’s boss) posted a developers wanted ad on his blog:
Read MoreSeattle Code Camp Wrapup
The Seattle Code Camp (which despite the misleading photo, isn’t a camping trip) is now over and I have nothing but good things to say about it. I didn’t get a chance to see a lot of talks but did enjoy the xUnit.net talk by Jim Newkirk and Brad Wilson. I’m a fan of their approach to providing extensibility and this session provided all the impetus I needed to really give xUnit.net a try rather than simply talking about trying it. :)
Read MoreBirthday Clusters and Code Camps
Research Supports The Effectiveness of TDD
In a recent post, Frans Bouma laments the lack of computer science or reference to research papers by agile pundits in various mailing lists (I bet this really applies to nearly all mailing lists, not just the ones he mentions).
Read MoreTDD Is Also An Organizational Process
After joining Microsoft and drinking from the firehose a bit, I’m happy to report that I am still alive and well and now residing in the Seattle area along with my family. In meeting with various groups, I’ve been very excited by how much various teams here are embracing Test Driven Development (and its close cousin, TAD aka Test After Development). We’ve had great discussions in which we really looked at a design from a TDD perspective and discussed ways to make it more testable. Teams are also starting to really apply TDD in their development process as a team effort, and not just sporadic individuals.
Read MoreCollection Initializers
File this in my learn something new every day bucket. I received an email from Steve Maine after he read a blog post in which I discuss the anonymous object as dictionary trick that Eilon came up with.
Read More