... to the digital home of Steven Schwenke.

This site is supposed to be a showcase for my thoughts about software engineering, less a personal homepage. If you want to know more about me, invite me to a beer.

Extending Java Enums

21 Oct 2012
Posted by Steven

I often stumble over ideas that are cool in some way and that I would never have thought about it. One of those ideas is extending Java Enums. Often frameworks and toolkits bring some kind of enumeration with them. For most of the tasks at hand, the elements in those Enums are sufficient. For the other cases, they can be extended to include more status. Of cause the library cannot handle the added elements in the Enum, so the methods working with it may have to be overridden. In this article I want to show how Java Enums can be extended.

First, let's have a look at the Enum:

Posted by Steven

Since reading the biography of Steve Jobs, I more and more do agree with the idea of minimalization. Obviously, he had huge success by simply leaving out things and concentrating on the rest. In recent months it became clear to me that this also applies to software development.

Posted by Steven

This article is a report about some observations I made during my time in two different projects. Each of the projects had one architect which, in retrospect, could not have been more different compared to each other. Both of them had great technical knowledge and more than 10 years of experience in IT. Both managed a legacy project that had more than 5 years of development time / uptime. However, my perception of the two was very different.

Posted by Steven

After changing the company I work for, I became member of a new project team a couple of weeks ago. In this article I want to describe what tools I used and what habits I use to make myself a productive coworker as soon as possible.

 1. Learning by repeating:

Posted by Steven

The other day a weird feature of the testing library Mockito tricked me. Allthough the behavior is mentioned in the documentation, it can not be bad to point it out here. Maybe this article spares someones time debugging his code.

I wanted to write a unit test for the class Controller. Controller uses a method of Blo, a Business Logic Object, to perform its tasks:

Posted by Steven

If a project lives long enough, it can be a good idea to update one part or the other. That way, new features can be used and the code base is up to date. During the last weeks I updated the frontend of a larger web application from ExtJS 3 to ExtJS 4. A lot of custom CSS rules were used.