Programming

Mescoservice Architecture

Posted on

Microservices are getting a lot of attention at the moment. For some they are the solution to the problem of monolithic software, to others they represent unnecessary complexity? Enter Mescoservices! Mescoservice architecture speaks to experienced service-oriented programmers who understand the concept of Domain Driven Design. It is the anti-dogmatic, non-extreme, and balanced view of service […]

Programming

Understand the Intent Before Making Changes

Posted on

There is a clever pattern in domain-driven-design whereby you create an object to represent identifiers in your model. For example, if you have a Client object, you replace the numeric id with an object called ClientId. The reason for this is that it prevents incorrect ids being passed to method, because the methods don’t allow […]

Programming

Wrapping Simple Types in a Class for Identities

Posted on

This is something I discovered when looking through some code I inherited from someone and I had to investigate it to work out why it existed. You may have already come across something similar, in which case you will know the answer to this question: Which of these is better? public Person GetPerson(int personId) { […]