Skip to main content

Clean Fill Dirt

Posted by daniel on January 15, 2004 at 7:55 AM PST

Check for code you have lying around that is "overly clever, difficult
to read and maintain, not expressive, or just generally violates all
attributes you associate with beauty."

Mike Clark is looking for real world examples to use to show "before and
after pictures of that code [...] to demonstrate how ugly code can be made
more beautiful through easy and practical refactorings." I think this is a
great idea. Instead of coming up with examples designed to show off some
particular refactoring, Mike intends to find real code in need of help and
work with it. If you have 25 lines or fewer in need of repair that doesn't
compromise your business in any way, consider sending them to Mike.

Clean Fill Dirt leads off
Also in Java Today
. What could be more fundamental to our craft than "writing good,
clean code. It seems that stuff is rare. I believe it's rare because we're
always heads-down writing our own code and we don't make time to read code
written by others. Thus, without a broad spectrum of code to compare
against, it's easy to think the code we write is as good as it gets.
Looking at beautiful and elegant code written by programmers we respect
offers a valuable perspective for improving our code. Learning how to give
ugly code a make-over offers another, usually more immediate, call to
action. Either way, once we've seen works of art we admire, we need a way
to get from here to there."

In less serious news, don't forget you have until February 23rd to
submit your proposed href="">
distribution method for this year's JavaOne T-shirt. In the past,
they have "used slingshots, 'Master Blasters', and a trebuchet to get
these coveted items out to audience members sitting in the crowd. This
year, James is looking to you, the creative developer community, to come
up with some fun, completely nonsensical, comical way to distribute his
T-shirt this year. Submit anything from rail guns, Taiko drums, balloons,
robots, ... you name it to get the T-shirts to the crowd in a creative,
yet safe, way. "

In today's
, Kathy Sierra has discovered that "The MIDP 2.0 Game API is so easy
to use. In about 15 minutes after flipping through the API and the MIDP
spec, I built a multi-frame animation, fully user-controllable, with
automatic double-buffering, in about a dozen lines. And that 15 minutes
includes creating the graphics! Until I started playing with it, I really
had no idea how simple and clean it is to use GameCanvas and Sprite."

In MIDP 2.0 is just too
much fun
she writes that there is "that little issue of, well,
virtually no devices in the US that currently support MIDP 2.0. Still, I
haven't done something so quickly and simply since the old Applet days."
The other problem, for many of us, is the lack of support on Mac OS X. Is
it Apple's job, Sun's job, or will it be left to a project?

Projects and Communities
, The Java
community highlights href="">TopicDocs, an open source
personal knowledge manager, archiver, and scheduler that uses two other projects: DBCollections and Filesearch.

The Java Games
includes an href="">
example for loading a Texture in JOGL. You can use Kevin Glass'
example utility class to load textures for JOGL called TextureLoader and
adapt his sampleTexture class for your own application.

In today's
News Headlines

Registered users can submit news items for the href=""> News Page using
our news submission
. All submissions go through an editorial review by news director
Steve Mallet before being posted to the site. You can also subscribe to
News RSS feed

Current and upcoming
Java Events

  • January 17 href=""> JUG
    Indonesia's JaMU (Java Meet Up) #6
  • January 20-23 LinuxWorld
  • February 2-5 EclipseCon

Registered users can submit event listings for the href=""> Events Page using our href=""> events submission
form. All submissions go through an editorial review before being
posted to the site.

Archives and Subscriptions: This blog is delivered weekdays as the
Today RSS feed
. All members can subscribe to the email
updates for the site at the href="">
java-net Mailing Lists page. You must be logged in to subscribe
the javanet_Daily and javanet_Weekly lists. Also, once this page
is no longer featured as the front page of
it will be archived along with other past issues in the href=""> Archive.