Ploeh - blog.ploeh.dk - ploeh blog
General Information:
Latest News:
A heuristic for formatting code according to the AAA pattern 25 Jun 2013 | 12:20 am
This article describes a rule of thumb for formatting unit tests. The Arrange Act Assert (AAA) pattern is one of the most fundamental and important patterns for writing maintainable unit tests. It st...
Where to put unit tests 17 Jun 2013 | 02:22 pm
The article provides arguments for (and against) putting unit tests in libraries different from the production code. One of my readers ask me "whether unit tests should be done in separate assemblies...
REST lesson learned: Consider a self link on all resources 3 May 2013 | 03:32 pm
Add a self-link on RESTful resource. This suggestion is part of my REST lessons learned series of blog posts. Contrary to previous posts, this advice doesn't originate from a lesson learned the hard ...
REST lesson learned: Consider a home link on all resources 2 May 2013 | 03:51 pm
Add home links on RESTful resources. This suggestion is part of my REST lessons learned series of blog posts. Contrary to to the previous posts, this advice doesn't originate from a lesson learned th...
REST lesson learned: Avoid hackable URLs 1 May 2013 | 03:29 pm
Avoid hackable URLs if you are building a HATEOAS API. This is a lesson about REST API design that I learned while building non-trivial REST APIs. If you provide a full-on level 3 REST API, consider ...
Herding Code podcast 1 May 2013 | 03:26 pm
I'm on Herding Code. At the Danish Developer Conference 2013 I had the pleasure of meeting Jon Galloway, who interviewed me for a Herding Code podcast. In this interview, we talk about AutoFixture, t...
REST lesson learned: Avoid 204 responses 30 Apr 2013 | 03:46 pm
Avoid 204 responses if you're building a HATEOAS application. This is a lesson about REST API design that I learned while building non-trivial REST APIs. In order to be as supportive of the client as...
REST lesson learned: Avoid user supplied data in URI segments 29 Apr 2013 | 05:07 pm
Be careful with user-supplied data in URI segments. This is a lesson about design of REST APIs that I learned the hard way: if you built service URIs from dynamic data, be careful with the data you a...
REST lessons learned 29 Apr 2013 | 12:00 pm
This post provides an overview of some lessons I learned while bulding non-trivial REST APIs. Last year I spent a good deal of the year designing and implementing a handful of non-trivial REST APIs f...
How to change the Generate Property Stub refactoring code snippet in Visual Studio 2012 23 Apr 2013 | 07:00 pm
This post describes how to change the code template for the "Generate Property Stub" refactoring in Visual Studio 2012. This is mostly a quick note for my own benefit (since I just spent half an hour...