Category Archives: Development

Event feeds for system integration

What is a event feed? It’s a list of events on something that has happened. This is useful if we have two applications that need to share events between each other. But we don’t want to push the event to the receiving application. Instead we want the reviving application to pull the events instead. This… Read More »

TDD with Venkat

Time for some education again. This time it’s Test Driven Development with Venkat Subramaniam (@venkat_s) Disclaimer: This is my own notes and my interpretation of things, NOT the teacher’s. I recommend you to take this course if you have the opportunity. Table of Contents Influences of TDD on Agility and Sustainability Circles of feedback Development speed Cost… Read More »

Features of Java generics

Java generics is a great feature introduced in Java 5, but it’s not that type safe that you would assume. The following example was found in our test code. dto.setFailingTask(new ArrayList(Arrays.asList(“Task1”, “Task2”)); where the setter looks like the following: public void setFailingTask(List<Task> aTasks) { tasks = aTasks; } So what’s going on here? The first… Read More »

Builder pattern for mandatory values

I found an interesting blog post for using the builder pattern with mandatory values. In short it uses the common builder pattern, but adds an twist by using interface to force which value to set next and thereby solving the problem with many mandatory values. I will demonstrate the problem with the common builder and… Read More »

Know your core framework

I found some legacy code in a project that I’m working on. I felt that I must share this one. I think it is very important to know the core framework you are working with. Especially the one included with the language you are using. In this project, we are currently using Java 7 and… Read More »

Data-Oriented Design and C++ with Mike Acton

I have been working the last 10 years in object oriented languages and tried to learn all design patterns for good design. I find this talk, even if this is nothing new, refreshing. Back to the basics and it make me wonder if our daily approach are the correct one or if we should try… Read More »

Goodbye Hello World

It’s time to say goodbye to the old standard hello world program. Not because it don’t work, but because it is the wrong approach. I think it’s time to welcome Hello Test instead.

Control your 3pp:s with maven

In my assignment I recently got the task to look over the maven build system in a large application that consist of more then 10 projects. All this projects have dependencies to each other (no circular one) and to various 3pp libraries like spring.

The evil comment

For the moment I am reading Clean Code by Robert C. “Uncle Bob” Martin @unclebobmartin. I just finished the chapter about comments that really made me think of something that I always argued about.