Category: Java
-
Questionable Semantics
I just stumbled across the concept of ZipFileSet in ant. A closer examination confirmed my suspicion. A ZipFileSet can be two pretty different things. We should stop spoiling young programmers using such outflows from a sick minds that are not capable of a single straight thought. The mainstream of java software (including the JDK) is…
-
Longing for Meaning
Might just be the post hangover depression, but I woke up this morning with a great longing for meaning. Why do we use all kinds of tools that actually hide the meaning and intention of our programs. I’m talking about fit and fitnesse, which actually does great amount of damage to my respect for Ward…
-
Anna Ternheim and the Java Process Class
I just discovered Anna Ternheim, a nice Swedish Singersongwriter. I am listening to here Album Separation Road and try to call an external process from groovy which after all uses the Java API to perform such tasks. Given the slightly depressing nature of the music and the slight drizzle outside, I can’t go on ranting…
-
Test Driving Eclipse Plugins
This week I started writing a few automated test cases for the jbehave eclipse plugin. I used Beck’s and Gamma’s “Contributing to Eclipse” as a starting point. They provide a simple test fixture that allows you to create java projects, packages and classes. I created a simple project with a trivial class and an even…
-
java.util.concurrent
Now that jdk 1.6 is finally out, I think it´s a good time to have a closer look at jdk 1.5. Of course I read that they included Doug Lea´s concurrency utils, but I never got around actually browsing the documentation. I should have done this earlier. It´s good loads of useful abstractions, like blocking…
-
Why Java Sucks
Today I stumbled across a bug in the java file handling on windows. On Windows you can have multiple Strings denoting the same file. Like “TEST.txt” and “test.txt”. If you create two file Objects with different names accessing the same file and compare the objects using equals you will get false. You should read the…
-
Prospector – Advantages of Static Typing
In my Opinion the only valid argument for static typing is better tool support. While refactoring capabilites of state-of-the-art Java IDEs are pretty good, there are other possibilities to assist the developer. One such way is shown by Prospector a tool to mine APIs for jungloids. That is calls or call chains that return an…
-
Naked Objects – Born Again
Eitan Suez has just open-sourced his JMatter framework which is an implementation of the Naked Object Paradigm explained in a Book by Pawson and Matthews. This Programming Model seems to be very expressive. As far as I know JMatter is the first professional implementation, that provides persistency in a database as well as a rather…
-
Use TAB in JTextArea for Focus Traversal
Lukily I found this article, which explains how to change the behaviour.
-
Communicating Sequential Processes in Java
Oft kann man die Probleme von Multithreading umgehen, indem eine hoehere Abstraktionsebene einsetzt, z.B. CSPs . Es gibt da auch eine halb offene Java Implementierung.