Java

Tim Bray offers an exceptional tip

In an essay on dynamic languages, Tim Bray ends with an interesting-but-controversial tip for handling Java exceptions that must be declared but can only result in a program shutdown: Catch them and throw a RuntimeException. ... (read more)

InformIT launches new technical weblogs

InformIT, a technology reference site created by seven computer publishing imprints, has begun offering weblogs devoted to several topics: .NET, C++, Certification, Flash, Java, Photoshop, SQL Server, and XML. Each weblog has a primary author and additional contributors (I'm one on the Java weblog). They're still new, so some changes may be made. I'd like to see RSS feeds and a less compact, more readable design. ... (read more)

Column: Using XML-RPC with Java

Linux Magazine has posted my January Java Matters column: an introduction to XML-RPC that demonstrates how to use the protocol with Apache XML-RPC, one of the great open-source Java libraries released by the Apache Project. ... (read more)Rafe Colburn is having some trouble with log4j, the Java class library from Apache Jakarta that supports logging. I wrote about log4j last August for Linux Magazine and was impressed with it, though I'm usually too lazy on my own programming to put it into use. ... (read more)Apache's Jakarta Project has released Commons/Net, an Internet protocol library for Java that includes "Finger, Whois, TFTP, Telnet, POP3, FTP, NNTP, SMTP, and some miscellaneous protocols like Time and Echo as well as BSD R command support." ... (read more)Aspiring game developers looking for a ground-floor opportunity should be developing for the wireless Web, according to XML and Java developer Russell Beattie: If you're just starting, you're not at the super-bleeding edge, but you're definitely an early-adopter, and that's not a bad place to be. Others have already shed the blood and worked out the standards and now you get to concentrate on making cool apps. ... (read more)Linux Magazine has posted my two-part series on J2SE 1.4's java.nio networking package: The Buffer Zone (on the new Buffer classes) and Non-Blocking Connections (on its new networking features). ... (read more)My article on XOM has been submitted to Linux Magazine and will be appearing in an upcoming issue focused on Java. I've been writing the Java Matters column for the magazine since August, giving me a great excuse to putter around with new Java APIs like XOM and Apache XML-RPC. My first two columns, which cover the Log4J logging class library and Java 2's new assertions feature, have been published online. People who want to know more about XOM now can read Michael Fitzgerald's recent article, ... (read more)I'm finishing a magazine article today on XOM, a new XML object model for Java by Elliotte Rusty Harold. The class library is impressive -- I haven't found a more easy to use, intuitive way to read, write, and manipulate XML documents with Java. Harold describes his design principles for XOM in a provocative essay that's worth reading by any programmer designing an API regardless of language. It's filled with quotable advice like this: "One of the jobs of the expert or experts who designs the ... (read more)Columbia House DVD is making heavy use of Java, according to an incredibly detailed error message on the site this morning. ... (read more)