Interfaces vs. Classes

November 14th, 2006

Apparently XOM and JDOM aren’t the only projects to consider interfaces to be more trouble than they’re worth. I just noticed that JAXB 2.0 now uses singles classes for its generated files rather than separate interfaces and implementation classes like version 1.0 did. Given that these are generated code that should not be directly modified or extended by the programmer, this seems an obvious choice.

Estimated Complexity

November 13th, 2006

From the Apache Harmony bug tracker:

Unknown Novice Moderate Advanced Guru Needs James Gosling

Porting a Java Program to PHP

November 12th, 2006

In Processing XML with Java, I used an example of plain text, XML-RPC, and SOAP clients that communicate with a Fibonacci number server I run here on www.elharo.com. Originally I wrote the servers in Java using the Java Servlet API. However, problems with Tomcat meant that the server went down every few months. When I moved this server from Linux to a Mac I didn’t even bother to reinstall Tomcat, and instead decided to port the servers to PHP 5. PHP has its own idiosyncrasies, but I use it for other things on this server (including this blog), and it didn’t seem worth keeping Tomcat running just for a few simple scripts.
Read the rest of this entry »

Ad-blocking Yahoo Groups

November 10th, 2006

Recently Yahoo Groups mailing lists seemed to all start sending out obnoxious image ads in various messages:

Yahoo Mail Ads

Needless to say, this makes me a lot less likely to subscribe to yahoogroups mailing lists. Most new lists are going to Google anyway. However there are several legacy groups I subscribe to that probably aren’t going to switch immediately.
Read the rest of this entry »

AWT on the Event Dispatch Thread?

November 10th, 2006

Last night I was teaching my Intro Java class about Swing windows, and specifically discussing the event dispatch thread. I dutifully warned everyone that all creation and update of Swing components had to happen on this thread, usually by calling SwingUtilties.invokeLater(). Then one of my students asked a question that stumped me:

Is the same true for AWT components?
Read the rest of this entry »

MacBook CoreDuo First Thoughts

November 9th, 2006

The new CoreDuo MacBooks from Apple look cool. I’ll probably get one whenever my current 2002-era TiBook dies, though hopefully that won’t be soon. There are a couple of things I wonder about though.
Read the rest of this entry »

Currently Reading