Month: December 2005

  • Top four Java Problems

    * The literal syntax is much too meagre. Ther is no Map, no Collection, no List, no multiline String, no expression substitution in Strings. * The standard libraries provide poor abstractions and little convenience. * There is no clean systax for block closures. * It’s statically typed without providing proper generics or some kind of…

  • Broken Java

    This morning I had to write the code to initialize a field to one year before today. It was *four* lines. And it is not type safe, but using magic int constants.

  • Neuerfindung des Neoliberalismus

    Gerade hatten wir wieder einen WTO Gipfel und wieder war allerlei Törichtes über den bösen Neoliberalismus zu hören und zu lesen. Der neoliberalismus als Richtung der Ökonomik ist heute “Mainstream” und das ist auch gut so. Wer heute Keynes total wichtig findet ist m.E. schief gewickelt. Dass der Welthandel nicht fair ist, ist bekannt. Das…

  • Java Quiz

    Suche elegante Möglcihkeit das untenstehende Idiom in generischer Form zu implementieren, da ich insbesondere das put gerne vergesse. Any Ideas? map = ….; //probably a loop here: key = ….; Element element; if (map.containsKey(key)){ element=(Element)map.get(key); } else{ element=new Element(); map.put(key,element); } //work with element

  • Robuste Software

    zeichnet sich nicht dadurch aus, dass sie Exceptions großzügig fängt und ins log schreibt. Das gilt auch für betwixt!

  • Beyond Java

    After my recent post about the advent of the sunset of java I’ve read Bruce Tate’s “Beyond Java”, which seems to fall into line with my argument. What I did particularly like about the book was the statement that Java is a language for system programming (which cached in on a lot of shortcomings of…

  • Das Fernsehen

    heute wurde ich in eine lebhafte Diskussion über das Fernsehen, insbesondere das private, verwickelt (Jaja, ich habe eine Neigung in Diskussionen verwickelt zu werden). Meine These war so ungefähr, dass Privatfernsehen in der aktuell dargebotenen Form schädlich ist und der Staat eingreifen muss. Verschiedene Argumente für die Schädlichkeit hat Kathy Sierra zusammengestellt. Das sieht ganz…

  • The Simpsons Archive

    Wer bisher Probleme mit dem Web-gerechten Zitieren von Simpsons Folgen hatte, für den gibt’s hier Abilfe: The Simpsons Archive.

  • Commons Collections

    Today I had a glance at commons collections. I’m convinced, that the more mature parts of the commons are what sun forgot about. If you know and use them you’ve definitely got a competive advantage. But now for the code: public class CollectionsDemo { public static void main(String[] args) { List list= Arrays.asList(new String[]{“Hund”,”Katze”,”Huhn”}); List…

  • Exit mit throw statt return

    Wie hier schon zu lesen war bin ich ein großer Freund der Exception, auch als Kontrollstruktur (für den Ausnahmefall). Eben hatte ich wieder so einen Fall, in dem ich besser eine Exception geschmissen hätte ,statt mit false zu “returnen.” Das ging etwa so: public boolean myOperation(){ if (!preconCheck1){ log(“precon 1 failed”) return false; } if…