Archives

Speed

April 29th, 2004

This morning's commute's speed. Yup, that's average speed, in km/h. Not including the time spent waiting for traffic lights, but including the time spent slowing down before and speeding up after a red light. If you would've told me this two months ago, I would've laughed at you in the face. Oh, yes, that's on a bicycle.

23: my turn

April 28th, 2004

Outer Web Thought Log: 23: I'm in!. My turn (now that I'm finally near a book :-/ ):

To be truly versatile, the EJB component design had to be smart.

Nobody defined the rule "the closest book you agree with"....

Enterprise JavaBeans, 3rd edition, Richard Monson-Haefel, O'Reilly

TCPView

April 28th, 2004

Bloogmark: TCPView: see which processes are using which ports on your windows machine, and TDIMon: see when packets are sent.

JNN

April 28th, 2004

I've just peeked into the code of jnn: The Juicy News Network, a weekend project by he who some call God (I won't mention any names though). And again, I'm worried.

For ten years now, people keep saying "In Java, variables start with a lower case letter." James Gosling sometimes uses capitals. "Structure your code." James doesn't even bother to hit the <enter> key an extra time between methods. "Use high-level constructs" I see bit manipulation all throughout. "Separate concerns" And why shouldn't Mr. Gosling makes his Feeds classes aware of the fact that they belong to a GUI, and thus have arrangements made for events?

It look like a new truth that I've just heard recently: "When coding, everybody falls back to his level of comfort." When you're used to Java, you'll program in Java following all those nifty design patterns and coding practices. When you're used to databases, you'll program in stored procedures. And I guess that, when you invented Java, your level of comfort is not Java, but more like C/C++.

What worries me most, though, is that it just works. Maybe there is a lesson to be learnt here.

Java and Linux links

April 23rd, 2004

Bloogmark: Java and Linux Links

Naive security

April 22nd, 2004

If you believe one word from this article, you might be in deep trouble.

Make methods private as security measure? Ever used reflection?

public class Reflect { private static String indent = " "; private static String demarcation = "======="; private Reflect() { } public static void dumpAllMethods(Class clazz) { Class curr = clazz; while (curr != null) { dumpDeclaredMethods(curr); curr = curr.getSuperclass(); } } public static void dumpDeclaredMethods(Class clazz) { dumpArray("Declared methods", clazz, clazz.getDeclaredMethods()); } public static void dumpMethods(Class clazz) { dumpArray("Methods", clazz, clazz.getMethods()); } public static void dumpConstructors(Class clazz) { dumpArray("Constructors", clazz, clazz.getConstructors()); } private static void dumpArray(String subject, Class clazz, Object[] array) { System.out.println(demarcation + " " + subject + " for " + clazz + " " + demarcation); for (int i = 0, n = array.length; i

Et voila, all methods accesible to you.

Make jars sealed? Ever heard of WinZip? Do you remember crimson in it's beginning days? If you wanted to use another XML parser (or was it XSLT engine), it was standard and well-known practice to unseal the crimson.jar.

I hope these people aren't going to secure my application.

"Flaws" in open source

April 20th, 2004

Hear, hear. Most OSS developers develop for fun. If this ain't what you're looking for, go look somewhere else. And try to understand the above sentence: we develop for the fun of developing. Just like you collect stamps for the fun of collecting. Or do you want to tell me that you want to earn money with that?

EJB vs Hibernate

April 16th, 2004

The world has become a weird place: during last JavaPolis, I heard Floyd Marinescu say "Alternatives to EJB are rising. They might be a better solution for you." Today, I read Gavin King saying "EJB's are not that bad after all." What's next? World peace?

Handy servlet filters

April 14th, 2004

Bloogmark: ONJava.com: Two Servlet Filters Every Web Application Should Have, and ONJava.com: Another Java Servlet Filter Most Web Applications Should Have. Thanks, Erik.

Kids...

April 9th, 2004

... they make everything else seem so futile, even to the most avid coders: Andrew. Vincent. You're warned.

Meanwhile, he still seems to fight this feeling. We'll see how long it lasts...

You're looking for something older?