Skip to main content

Blog Archive for daniel during August 2004

Separating from a class you don't control If I were a design pattern, I think I would be the Adapter. Sure, I thought I could be a Command pattern, but I don't like people telling me when to do things. In Robert C. Martin's latest article The Adapter Pattern he starts with the following: public class Button {  private Light light;  public Button(Light light) {    this....
Gotta parse the XML fast I'm not sure why Groovy seems to be taking hold so fast. For instance, Ruby seems to provide much of the benefits of Groovy and it has not caught on as much as we might have expected. Martin Fowler write about transforming XML with Ruby in Moving Away From XSLT. Groovy does have the advantage of being easily integrated into a Java application. Jack Herrington shows a...
Thank you Julia Julia Child died earlier today. In addition to writing many wonderful cookbooks, the CNN obituary says "She was 51 when she made her television debut as "The French Chef." The series began in 1963 and continued for 206 episodes. Child won a Peabody award in 1965 and an Emmy in 1966, and went on to star in several more series for Boston's WGBH-TV." Warning - this may feel...
Capture signatures on a touchscreen-enabled J2ME device Some java.net featured articles cover important technology and some are just cool. Scott Davis' article on Scratch. Scratch lets you use a Palm or other J2ME device to capture signatures in the field. He takes you through what Scratch does out of the box and then shows you how to customize it. Scratch consists of three screens:...
The JavaLobby team releases a JavaDoc search engine that allows annotations Ben Galbraith leads off today's Weblogs with a look at where jdocs.com is and what he hopes to see from it in the future in his post Finally...Interactive JavaDocs. Craig Castelaz is looking at improving field validation in The best laid plans. He is wrestling with the problems of doing this too late because "his...
Early versions of chapters from the upcoming Geronimo: A Developer's Notebook David Blevins has been kind enough to provide us with a preview of the first two chapters of Geronimo: A Developer's Notebook. He is also hosting a forum for those of you who read the chapters and have comments. These chapters "cover installing, running, and playing around with Geronimo. We've made them publicly...
With fewer programmers, what are they managing? One of our news items today is from an Informationweek article IT jobs Disappear. The article does report gains, but explains that "bulk of the IT workforce loss occurred among computer scientists-systems analysts, programmers, and support specialists. In 2000, there were 893,000 computer scientists-systems analysts--more than any other IT job...
What's the fuss about testing outside of a container Some frameworks stress the importance of testing an EJB within its container. Others argue that it's important to test an EJB outside of its container. In today's Forums, prasadgc writes "Think about this: Is a POJO testable outside its container (i.e., the JVM)? Is a servlet or JSP testable outside the web container? Why is it a requirement...
As simple as possible but no simpler In Also in Java Today in New Life for EJB Ganesh Prasad and Rajat Taneja argue that the recent specification for EJB 3.0 doesn't solve EJB's problems but instead obscures them in order to maintain backwards compatibility. They offer an alternative vision of how to set EJB's right in a a paper available for download as a PDF. They're also moderating a...
Latest Java Tech article on fundamentals of Synchronization Jeff Friesen's latest article in his Java Tech series is part one of The ABCs of Synchronization. Friesen notes, "Neither the Java language nor the Java VM provides a way to prevent deadlock. Therefore, deadlock prevention is up to the developer. The simplest way to prevent deadlock from happening: avoid having either a synchronized...