15 February, 2009. It was a Sunday. It’s a common question, “Where do I put validation?” Simple answer: put it where it’s needed. But it’s not just a question of “where”, but of “when”, “what” and ...
20 June, 2013. It was a Thursday. I’ve more or less ditched NUnit as my default automated testing platform in .NET, preferring the more sensible defaults of xUnit.net. Switching wasn’t so bad – it ...
19 July, 2016. It was a Tuesday. To help those building applications using the new Microsoft DI libraries (used in Orleans, ASP.NET Core, etc.), I pushed out a helper package to register all of your ...
17 February, 2012. It was a Friday. If you write any code in JavaScript then you’ve probably used closures, but do you actually understand what they are and how they work? Taking the time to ...
19 April, 2010. It was a Monday. If you’re using Double Dispatch in your code, this may be a symptom of an underlying design issue which may impact the maintainability of your application. Due to the ...
12 August, 2008. It was a Tuesday. A question came up on the ALT.NET message board asking whether Value Objects should be used across service boundaries. Of course, the conversation took several ...
18 June, 2013. It was a Tuesday. One of the keys to having maintainable tests are to make sure that tests are isolated and reproducible. For unit tests, this is easy as long as we stay away from ...
30 August, 2012. It was a Thursday. I used to care quite a bit about project structure in applications. Trying to enforce logical layering through physical projects, I would start off a project by ...
1 June, 2016. It was a Wednesday. In many of my applications, the UI and API gravitate towards task-oriented UIs. Instead of “editing an invoice”, I “approve an invoice”, with specialized models, ...
Way too many times I encounter applications that claim to have a domain (model) and that domain driven design has been used to develop it, but in reality what I find is a collection of entities or ...
22 April, 2014. It was a Tuesday. I’ve been a supporter and user of NHibernate for nearly 10 years. While not part of the original NHibernate Mafia, I’ve long enjoyed NHibernate’s ability to rich, ...
Recently, I talked some about the idea of an intentionally anemic domain model, under the name of “Persistence Model”. While a Persistence Model is great for a large percentage of projects, you may ...