try-catch-FAIL

Failure is inevitable

NAVIGATION - SEARCH

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...

Perfect PDF 2.0 Beta Released!

Finally!  The next iteration on the road to Perfect PDF 2.0 is available on NuGet! More...

Random Link Roundup–3/6/2015

Happy Friday, everyone!  It’s been a week of craziness.  Microsoft and Google, working together??  AngularJS 2.0 built on TypeScript??  These statements sound too crazy to be true, but yet, here we are! More...