try-catch-FAIL

Failure is inevitable

NAVIGATION - SEARCH

Gulp with ASP.NET: am I doing it wrong?

I hope the answer to that question is a very loud, emphatic, “YES!”  I like gulp!  I want to use it!  And I’ll confess up front that I’m still very green with gulp.  I know there are a lot of things it can probably do that I’m not taking advantage of.  But, I feel like my development experience has taken a step backwards compared to what I had with ASP.NET Bundling & Minification.  I feel like gulp has just added more development friction to my day.  Someone, please tell me that I’m doing it wrong. More...

Ditching StructureMap’s ObjectFactory

Another question people ask after they’ve watched my App Framework course at Pluralsight is, “What should I do now that StructureMap’s ObjectFactory has been deprecated?”  Actually, it’s more like a cry for help rather than a question.  It goes like this: “AAHHHHHH OBJECT FACTORY IS GOING AWAY WHAT DO I DO?? AHHHHHHHHHHHHHHHHHH!!”  Or at least that’s how I choose to read the comments and questions. :)  But don’t panic!  Read on, it’s actually far easier to address than you might think. More...

Encapsulating Query Logic in MVC Apps Without the Repository Pattern

One of the most common questions I get when people see a video or presentation about how I build MVC applications is, “Why don’t you use the repository pattern?”  There are a lot of reasons not to use the repository pattern, and they’ve been well-covered by others.  But, one valid benefit they provide is encapsulation of query logic.  In this post, I’ll show you how you can maintain encapsulation in your applications without having to use the repository pattern. More...

Returning Multiple Result Sets from a Stored Procedure Using Entity Framework 6

I know, I know, you’re already rolling your eyes!  “Stored procedures??!?”  But hey, sometimes a stored procedure is the best solution to a problem!  Entity Framework allows you to call stored procedures quite easily out of the box, but working with sprocs that return multiple result sets isn’t so easy.  Here’s a handy extension method you can use to make it easier. More...

Why are there no “solved problems” in software development?

I’ve been on both sides of the stick in software development.  I’ve been a developer, trying to crank out a feature, and thinking “Geeze, I should be able to do this faster…” and “Wait, you mean this API doesn’t do this for me already??”  I’ve also been a product owner, wondering, “Why in the world is this taking so long?  It’s just a form!”  The sad truth is that even a seemingly-simple problem in software development can turn out to be a serious can of worms.  Why is that?  Well, because the devil is in the details, and there is no such thing as a “solved proble... [More]

Using SpecsFor.Mvc with Windows Authentication

Numerous people have requested that I put together a sample that illustrates how to use SpecsFor.Mvc with Windows Authentication.  Guess what’s in this post? More...

SpecsFor.Mvc 4.5.0 Released!

A new build of SpecsFor.Mvc is now available on NuGet!  This release was made possible by contributions from the community, so a big “Thank You!” goes out to henkeson and neuhoffm!  Their contributions added support for: Project configurations that have non-standard solution locations (just call Solution.Named() or pass in the path to your solution directly!) UrlShouldMapTo and UrlMapsTo are now case-insensitive by default, but you can change this behavior if you want! You can change the Output path, which makes it possible to use SpecsFor.Mvc with multiple web projects at ... [More]

Simple Server-Client Pub-Sub using SignalR

The Pub-Sub pattern is a great way to keep interested parties up-to-date on changes in state.  For web applications, sometimes the thing you want to track state on lives on the server, and the interested parties live on the client.  Using SignalR, you can easily propagate events out to interested clients without spamming uninterested clients.  Here’s how to do it. More...

Intro to .NET Unit & Integration Testing with SpecsFor–Now on InfoQ!

My latest ramblings on SpecsFor are now available on InfoQ.  If you’re curious about SpecsFor and what it can do, my hope is that this article will enlighten you!

Voting for CodeStock 2015 Is Open!

The next CodeStock is approaching fast, and now it’s time for everyone to vote!  More...