Skip to main content

Blog Archive for johnsmart during May 2008

The Java Power Tools book got a five-star review on Javalobby: here are some quotes: "I was just blown away seeing how thoroughly John covered each and every tool" "The book is enjoyable, extremely well organized and covers a wide range of open source tools needed for any successful software development life cycle. I would recommend Java Power Tools to anyone writing Java." "Java Power Tools...
Any Test-Driven Development practitioner will tell you, Test-Driven Development is a design strategy, not a unit-testing technique. Writing unit tests are a means, not an end. The goal is to write better quality, more reliable, and more accurate code. I recently read a study in the IEEE Software journal ("Does Test-Driven Development Really Improve Software Design Quality", IEEE Software,...
In the first part of this article, we looked at the basics of how to use enums in Java 5. In this part, we look at some more advanced use cases, including how to use enums with Hibernate. Adding extra fields to enums Enums are implemented as fully-blown classes, so they can also have attributes. Here, for example, we add a "code" attribute to the Status enum, representing a single-character...
For those who missed out on the first Java Power Tools Bootcamp in Wellington, another bootcamp has been scheduled in Wellington for the 25th-28th of August. The Java Power Tools Bootcamp is a comprehensive, innovative and hands-on workshop covering best-of-breed open source tools and techniques for Agile Development in Java. Learn how to optimize your development process, hone your...
In his JavaOne talk this year, Josh Bloch gave some very useful tips about using enums in Java. Here is my take on enums, and how to use them to represent simple value lists which would otherwise be stored in code tables. This document is in two parts - Part one covers the basics of Java enums, and Part 2 goes into more advanced use cases such as using enums with Hibernate. Introducing Java...
Personally, I hate Javascript with a passion. This is largely my fault - I just haven't taken the time to learn it properly. Unfortunately, there are still times when you just have to work with it. And the lack of syntax checking and code completion has always driven me crazy. This morning, I saw a most impressive demo - the new Javascript editor in NetBeans. Now, when you work with Javascript...
This morning, James Gosling gave his traditional keynotes speech, with a series of impressive and entertaining demonstrations. What came across was the vast range of in which Java is being used. From online gaming to 3D graphics on mobile phones, from Smart Cards to particle accelerators at the CERN, from intelligent pens to robotic cars and power stations, Java is being used absolutely...
This being my first JavaOne, I wanted to share a few photos to give readers some general impressions. JavaOne takes place in the Moscone center in downtown San Francisco. Coming into JavaOne through the main hall... The first thing to say is that there are lots of people. Hmmm, I'm not sure I made that clear: there are lots of people. A typical session - this is Josh Bloch taking...
There are a lot of static analysis tools out there, but Findbugs is unique. Where Checkstyle will raise 500 issues, and PMD 100, FindBugs will only raise 10 - but you damn well better look at them carefully! That is a slight over-simplification, but it does reflect the philosophy of FindBugs. FingBugs uses more sophisticated analysis techniques than tools like PMD and Checkstyle, working at...