Welcome to another installment of the Java newsletter. This week, we've mixed theory and practice to help you write better code.
In an ideal world, applications will never crash, users will always do what you expect, and no one would ever use the word "recover" in the same sentence with "my data." Since we don't even have flying cars yet, it pays to be a little more paranoid in programming. One nice feature of Java is that you can register code to run when the virtual machine shuts down--very handy for cleaning up after something unexpected happens. Budi Kurniawan demonstrates how to use this feature in Surviving Unplanned Shutdown.
To subscribe to the ONJava.com newsletter (or any O'Reilly Network newsletters), visit https://epoch.oreilly.com/account/default.orm and select the newsletters you wish to receive in your user profile (you'll need to log in with your existing O'Reilly Network account -- if you don't yet have an account, you'll need to create one).
To change your newsletter subscription options, please visit https://epoch.oreilly.com/account/default.orm and click the"Manage My Newsletters" link. For assistance, send help to
"The code is the design", say the Extreme Programming folks. Less dogmatically, "It's hard to embed design resources in source code and very hard to have a nice round trip between design tools and source code." New contributor Bruce Wallace has a technique he calls "Design Markers" (also called "Explicit Programming") that can keep design decisions in the source code with very little fuss and muss. Read more in Design Markers: Explicit Programming for the Rest of Us.
We've some interesting articles on the horizon. As well, our forum overhaul is almost done--we'll have some Java book authors ready and waiting for comments shortly. It's been a while in coming, but it should be worth the wait.
O'Reilly Network Technical Editor
E-Tech Java Guide
Threads, Timers, and responsive GUI's
Pragmatic Programmers on Abstraction and Detail
Open Source -versus- Commercial J2EE Containers
Other Java News (channel -- LANG: JAVA)
Java Cookbook Recipe of the Day
O'Reilly and Associates
Return to list of ONJava Newsletters.
Return to the ONJava.com.
Copyright © 2009 O'Reilly Media, Inc.