3 concrete steps that will make your code unit testable

  This post explains three pragmatic techniques which will make your code more unit-testable. I will list them down first and then go on to explain them in more detail. Write logic in pure functions. Separate out algorithmic code from coordination oriented code. Understand your aggregate roots.   Write logic in pure functions A pure function has

Mule – Private flow versus VM transport

In this post I will show the differences between chaining flows with a VM transport versus using a flow-ref. When I need to divide my Mule flows into re-usable units I often break them into smaller flows and then chain them together in a main flow. Flows can be chained together using flow-ref’s or using

Paying attention to the ‘when’ while modelling your domain

Most textbooks tell us to pay attention to the nouns in a user stories as they will become classes in your domain model and verbs are treated as implementation detail however there are scenarios when the verbs in a user story are first class concepts and need to be modelled as classes, this is often

What is ‘secondary sort’ in Hadoop, and how does it work?

Secondary sorting is non-trivial and it’s easier to explain it with the help of some pictures. First things first let’s look at the definition Secondary sort is a technique that allows the MapReduce programmer to control the order that the values show up within a reduce function call. Now what the heck does that mean