Martin Ankerl
No movement is faster than no movement

Top 10 Eclipse Hotkeys

Eclipse has lots and lots of hotkeys, but for daily work you need only a small subset. This are the hotkeys I consider to be the most important time savers:

addthis_url = ‘http%3A%2F%2Fmartin.ankerl.com%2F2006%2F07%2F20%2Ftop-10-eclipse-hotkeys%2F’;
addthis_title = ‘Top+10+Eclipse+Hotkeys’;
addthis_pub = ”;


Self-hosting Subversion Configuration

How to configure Subversion with Subversion: check out the configuration files, and have subversion automatically use the latest commited version. You do not need to have access to the repository server any more, just a subversion client and a text editor is enough. If you need to change access rights and users regularly, this can [...]


Exception Handling versus Logging

Exceptions versus Logging
The big question is, when to use logging and when exceptions? Let me tell you a story:
Not so long ago I have been working in a Java project where I introduced log4j, and was very happy to see that all the System.out.println’s got removed and replaced with the much more sophisticated logging. For [...]


Particle Swarm Optimization

For the company I work with I have implemented a Particle Swarm Optimizer (PSO). You can think of a PSO like a flock of birds that are flying around and searching for food. Each bird is talking to its friends, like “hey, I have found lots of food where I am right now!”. Other birds [...]


Java vs. Ruby

Here are two example solutions for the problem
Write a threaded server that offers the time.
The first example is written in Java, the second in Ruby (taken from the excellent book “The Ruby Way”). Both versions are implemented to be very simple. Please judge for yourself:
Java (31 lines of code)

package at.martinus;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Date;

public class [...]