Om att gräva diken samtidigt

Jag hade ett samtal med en god vän idag om livet i allmänhet och jobbet i synnerhet. Vännen ville ventilera ett litet problem som hade uppstått på jobbet och det fanns behov av att låta “metaforenas mästare” (inte jag som kallar mig själv för det) beskriva mer konkret hur det kändes och varför det kändes så ohållbart med det som föreslagits.

Read More

Kotlin is Java - not

It all started with a little discussion amongst the developers: what language to use for a new project. The statement, “If you know the Java language, you can program in Kotlin!” was thrown out by one of the developers advocating for Kotlin. As someone fluent in both Java and Kotlin, I switch between them seamlessly depending on the programming task at hand.

Read More

Får det vara så här vackert?

Det är onsdagen efter att stadshuset har gästats av Nobelpristagare, kungligheter och andra potentater. Solen är sakta på väg upp mot en himmel med enstaka tunna moln. Det är en krispighet i luften när jag börjar min färd in mot centrala Stockholm.

Read More

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