DTO or not DTO?

It all started with a code review. A developer had added a method in a class that created a hard dependency between several other domain classes and value objects and then exposed everything to the Web UI.

My statement was “That violates the DTO Pattern, move that method to an Assembler instead”. A sentence that for me made perfect sense, since I have read mr Fowlers book on Enterprise Pattern several times.

Read More

DTO or not DTO?

In this blog we dive into the concept of Data Transfer Objects (DTOs), providing a detailed explanation of their use, design best practices, and how they relate to other object patterns like Value Objects (VO), Domain Objects (DO), and Business Objects (BO). You will gain the understanding that the key to effective use of DTOs lies in their purpose: transferring data efficiently while keeping domain logic separate and testable.

Read More

Limits to growth

The earth is in one way a closed in biosphere, not that different from the biospheres in a bottle that you create in science class. Unless we get hit by a huge meteor or we refine the space mining as depicted in the 1981 movie Outland where mining is done on a Jupiter moon “sometime in the 21th century”, we are pretty much stuck with the resources that we have here on earth.

Read More

Normalicy bias!

Normalicy bias, or normality bias, depending on where in the world you speak english, is the congnitive bias that leads people to minimize warnings, threats or issues. We tend to prepare inadequately for failiure, like storms, stock market crashes or bicycle drivetrain wear.

Read More