Skip to main content

Blog Archive for timboudreau during May 2009

Over the years, a few people have come across and used a bit of code I wrote for Imagine. You basically have the problem that Java image data is stored on the heap as giant byte[] arrays and you quickly run out of memory. One of the JDK team guys assured me about two years ago that with JDK 7 this would no longer be a problem - but I got no sense that he either understood what the problem was,...
One of the first games I ever wrote, circa 1982, was a version of Pong for the TRS-80. Yes, pong - with the two paddles and bouncing ball. Now there's a NetBeans plugin! I had a pong game when I was in about 3rd grade. It plugged into the black and white TV in the kitchen, had two paddles and one switch for ball speed. The real fun was when the cat would stand up with her paws on the bottom...
I'm going to JavaOne next week - doing a talk I'd love you to come to as part of Java University at 6PM this coming Monday (I mistakenly originally posted Sunday) night. I'm gathering a bunch of NetBeans core developers, dream team members who build apps on NetBeans and all and sundry to come demo the things they love about NetBeans and give the audience a chance to talk with the people who...
Ohloh is a neat service. It does some basic statistical analysis of open source projects, and tries to come up with useful information. But it sure comes up with some wacky statistics. Take, for example, the Wizard project. Now, this is something that I initially whipped up in two afternoons in September '05. It's a small library - it's attracted six contributors since then, who've all made...
I recently set up a new project on kenai.com - this is something that has been available in NetBeans for years, and is probably useful to a wider audience. It is a library for taking two java.util.Lists and generating a diff between them. There are a number of libraries around that support using Collections as models for Swing components. But most revolve around observable lists, or wrapping...
Simon Phipps posted a URL to this interesting article on PCWorld, Trademarks: The Hidden Menace. Having been involved in Sun's open source projects from the beginning, and dealt with lawyers on trademark issues over the years, I have a few thoughts - and some serious disagreements with some of the comments. Since article comments are less often read, I am posting my comments in expanded form...
I've spent the last few months collaborating with the Java Card team to create Java Card plugins for NetBeans. It's not released yet, but here are some screen shots to whet your appetite. Java Card is an interesting platform to work with - a JVM that runs on smart cards and tiny devices that fit in the palm of your hand. As of Java Card 3.0, it comes in two flavors: Classic—this is the...
A couple of years ago, at OOPSLA '06, I think, I had a lot of fun hanging out with Jarda Tulach and Rich Unger and writing a generic library for enqueueing a batch of jobs that run against an object on a background thread. The fun part was really getting to dig into the java.util.concurrent classes, to do it such that enqueueing work is always non-blocking and transparently handles scheduling of...
A few of months ago I blogged about a simple but powerful pattern for working with Objects not key/value pairs - use dynamic proxies to generate an implementation of an interface, which delegates to the backing storage transparently. It's ready to become a small open source project. Names are important — they should either be communicative and say what a thing is/does — or they...
Every now and then I get tempted to do this: public abstract class AbstractType {    protected AbstractType() {        if (getClass().getSuperclass() != AbstractType.class) {            throw new AbuseOfInheritanceError();        }    }} I'...