Tuesday, June 24, 2003

Much Cooler Than My Attempts

so this, is a damn nice java implementation of zeroconf, in java. it's far far cooler than my attempts to implement some of the same stuff in c, so if you're looking for a starting point for some rendezvous support in an application, and java plus lgpl is acceptable, check it out. if nothing else, it's a good place to get some ideas on how to implement your own, so check it out anyway, even if you don't plan on writing a java app.

oh, and just a note on the code itself:

maybe i'm spoiled by coding in languages where you can actually define things outside of a class, but faking it by making a bunch of classes that aren't really related in an isa type relationship all extend from a base class who's only purpose is to hold constants seems like a neat trick, but when it comes right down to it, it seems like the language shouldn't be forcing these kind of contortions on it's developers.

wow, that was a long sentence.

1 comment:

  1. borrow my copy of Effective Java and learn why that is a really crufty thing to do and it shouldn't be done. thankfully java 1.5(?) is getting enum support, so you really won't have to pull this crap anymore.

    ReplyDelete