Posted by daniel
on July 27, 2004 at 9:14 AM PDT
If you reach back in your memory, you may remember learning about Type I and Type II errors in a stats class. Generally, you are testing a hypothesis and the two types of errors are rejecting a hypothesis when you shouldn't, and not rejecting a hypothesis when you should.
It may be a bit of a stretch, but it seems to me that this applies to scripting (and probably aspects and a host of other technologies). In other words, there are many Java developers who don't use a scripting language when they really should be and there is probably an equal number who reach for scripting when the task they are addressing could be better handled in the Java code they are scripting.
In Also in Java Today , the Judo Script article asserts that "Today, many Java scripting languages are available and new ones keep popping up, which is not surprising because Java is a perfect platform for designing scripting languages. " Like all tools of choice, examine whether or not your current task benefits from scripting.
The Core Java tech tip More Multithreading in Swing begins with a visual example of a non-responsive thread in a GUI based application. You then see a case in which invokeLater() is misapplied and the application is still non-responsive. The final iteration uses a Timer so that the background activity is reflected in the GUI.
"The record industry is trying to stop you from using your MP3 player without their permission. This could not only make it illegal to copy music to your iPod, but could erect barriers to all content."
Check out Daniel Brookshier's piece Save P2P by stopping the INDUCE Act in today's
Joshua Marinacci's mind is following another iTunes inspired path which he shares in Quick Radial Blurring w/ Java2D . "The other day I was watching the psychedelic display in iTunes when I thought, I wonder how hard it would be to do that? I know it's a blurred and stretched out from the center, but that was pretty much it. I found some demoz that did something similar but I didn't feel like pawing through badly documented C++ code to figure it out. Instead I went to Java2D and wrote this in about half an hour"
David Rupp has tips on Public Speaking: A Geek's Handbook . My favorite tip, other than not reading your slides bullet-for-bullet is to pretend to be someone else. It's not what he's suggesting, but imagine before each presentation you pull a card from TheServerSide deck and deliver the talk like the person you select.
Do getters and setters cause problems with accessibility of classes and members? In today's
Forums , Jimothy writes that "the biggest violation of this principle (both personally an in the Java community at large) is our reliance on getters are setters. The use of getters and setters is such a common idiom, and IDEs make it so easy to automatically generate them, that is easy to fall into a habit of provides getters and setters for nearly every property in each class."
In Prefer interfaces to abstract classes Zodiac writes "; adding methods to an abstract class isn't as bad for backwards compatibility as adding them to an interface, but there's certainly an impact."
And in Use interfaces only to define types archangel replies "In Effective Java he's talking about defining constants in interfaces and "importing" them by making your class "implement" the interface. This *is* bad because it doesn't make any sense from a hierarchical point of view. You can just import the interface and then qualify the constant with the interface name"
In Projects and Communities ,James Todd blogs on the release of JXTASpaces,
"an experimental project to design and implement a distributed shared memory service on the JXTA peer-to-peer computing platform."
Learn more about the Java Webservices Developer Pack (WSDP) 1.4 and get questions answered in today's Java Live Chat July 27. 11:00 A.M. PDT.
In today's java.net News Headlines
Registered users can submit news items for the
href="http://today.java.net/today/news/">java.net News Page using
our news submission
form . All submissions go through an editorial review before being posted to the site. You can also subscribe to
News RSS feed .
Current and upcoming
Registered users can submit event listings for the
href="http://www.java.net/events">java.net Events Page using our
href="http://today.java.net/cs/user/create/e"> 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 . Also, once this page
is no longer featured as the front page of
java.net it will be archived along with other past issues in the