Monthly Archives: August 2014

goto aarhus: looking forward to GOTO conference in Aarhus – day one

With less than one month for the conference, I am really starting to look forward to it. This will be the first non academic conference I will attend and some of the topics look really interesting. I’ve been lucky enough to get a blogger pass to the conference, this means there will definitely be more posts about it. Continue reading goto aarhus: looking forward to GOTO conference in Aarhus – day one

diyes: practical modeling of aggregates

I decided to start working on a simple example, a bank application, that shows how aggregates can be modeled using Diyes.

The aggregate I decided to model is a bank account, it will exemplify some basic concepts of aggregate modeling. First of, we create a class that inherits from AbstractAggregate

public class Account : AbstractAggregate

How we normally go about modeling aggregates is we expose methods which are the commands that can be performed on our aggregates. So in this case I decided to have an Open, a Deposit and a Withdraw method. First thing we do in these methods is checking the preconditions for their execution, if the preconditions are met, we apply an event describing what happened. Continue reading diyes: practical modeling of aggregates

diyes: laying the foundation

For the more lazy ones that decided to skip the event sourcing literature that I suggested in my first post, I will try to explain a bit of how it works. Bear in mind, I am myself try to get to understand better how  Event Sourcing (ES) and CQRS so my explanations might not be the best.

So basically, instead of having objects containing a state to represent our business objects, with event sourcing we have a sequence of events that describe what happened to our aggregates (in ES these business objects are called aggregates).

Continue reading diyes: laying the foundation

diyes: the event sourcing library

So the other day I was thinking to myself I wanted to know a bit more about event sourcing (ES) and the Command Query Responsibility Segregation pattern (CQRS). I have used ES before in a project before but I used library which was’t made by me. This gave me knowledge on how to model a domain using events but it didn’t give me the “down to the iron” experience of it. So I thought, what better way to learn about ES than by implementing a ES library myself.

Continue reading diyes: the event sourcing library

book review: The No Asshole Rule by Robert Sutton

TL;DR: The book talks about a dark side of the organisation life where assholes exist and can bring physical and psychological destruction to people around and costs to the organisation. Though the book is more aimed at bosses and managers I certainly enjoyed the read. I recommend this people to everybody, even if you don’t find yourself in asshole trap (a company full of assholes), you might find out that you have a bit of inner-jerk yourself and this book might help you control it.

Continue reading book review: The No Asshole Rule by Robert Sutton