Category Archives: patterns

DDD – The aggregate

In my last posts I revisited domain driven design (DDD), applied it to a concrete domain and shed some light onto special scenarios (here and here) and how one could possibly solve them using DDD. In this post I want … Continue reading 

Also posted in architecture, DDD, design, How To, TDD | 28 Comments

Consistent or not that’s the question

My last post about CQRS has lead to a lively discussion around eventual consistent read models. First let me clarify what eventual consistency in the context of a read model means. A read model that needs some time to get … Continue reading 

Also posted in asynchronous, CQRS, Event sourcing, Read model | 6 Comments

CQRS revisited

Introduction In my opinion Command Query Responsibility Segregation (CQRS) is one of the most useful architectural patterns when used in the context of a complex line of business application (LOB). Martin Fowler writes … At its heart is a simple … Continue reading 

Also posted in architecture, CQRS, How To, learning | 54 Comments

Proper Session/DbContext lifecycle management

Most “heavy” object-relational mappers (ORMs) have an interface that provides more than just easy querying of the database. They also are implementations of two key patterns: Unit of Work Identity Map For NHibernate, this is the ISession interface, and for … Continue reading 

| Comments Off

Put your controllers on a diet: POSTs and commands

Previous posts in this series: Redux Defactoring A survey GETs and queries In the last post, we looked at encapsulating the interesting part of GET actions (taking request parameters and building a model) into individual encapsulated query objects and handlers. … Continue reading 

| Comments Off

Fluent Silverlight – Part 1

Introduction We (that is Ray Houston and myself) want to introduce a new framework we developed in the past few months. This framework provides a fluent interface to Microsoft Silverlight. As we have been able to leverage a lot of … Continue reading 

Also posted in fluent Silverlight, introduction, lambda expressions, practices, reflection | 11 Comments

PTOM – Brownfield development – Making your dependencies explicit

Introducing DI and “poor man’s DI” Introduction Greenfield Development happens when you start a brand new project, as in, clean slate development. No legacy code lying around, no old development to maintain. You’re starting afresh, from scratch, from a blank … Continue reading 

Also posted in brownfield, legacy code, practices, PTOM, SOLID, TDD | 4 Comments

The open closed principle

In the previous two posts I discussed the S of S.O.L.I.D. which is the Single Responsibility Principle (SRP) and the D of S.O.L.I.D. which corresponds to the Dependency Inversion Principle (DI). This time I want to continue this series with … Continue reading 

Also posted in design, practices, SOLID | 8 Comments

Real Swiss don’t need SRP, do they?

Introduction You may ask yourself why I publish another article about the single responsibility principle (SRP). We already had some very good post about this principle at Los Techies, e.g. here, here and here to mention just a few. Well, … Continue reading 

Also posted in introduction, practices, SOLID | 19 Comments

Domain Models in presentation frameworks

One common question when applying DDD is how to interpret other architecture’s concepts of a “model”.  For example, two common presentation architectures are MVC and MVP.  In each of those acronyms, the “M” is short for “Model”.  So what exactly … Continue reading 

| Comments Off