The Source for Java Technology Collaboration
User: Password:


Today on java.netApril 06, 2005

Exception Breakpoints: Flow control when developing » Read more
 

Projects & Communities

NetBeans
NetBeans 4.1 branch created: Trung Duc Tran blogs that the NetBeans 4.1 branch created and that "We are now in the so called high resistance mode [..] Do no harm, no new last minute features."»Read more
JXTA
MyJXTA adds voice: The JXTA community's James Todd blogs that Voice over JXTA is being opened up for broader testing in the MyJXTA application.»Read more

Weblogs

Tom Ball Exceptional Debugging
Exception breakpoints are an underused feature in Java debuggers. Here are some tips on using them effectively.    Tom Ball

Srikanth Shenoy Memoirs of Self Publishing
How my Struts best practices notes became a book and how I did it via self-publishing. Now the ebook is free to download. For more, Read ahead...    Srikanth Shenoy

John Reynolds Keep the objective in mind
We often get lost in the minutiae and confuse details with objectives.    John Reynolds

Forums

2-Dimensional arrays
One of the most obvious omissions from Java is 2-dimensional arrays. Any chance of these being added.This is also discussed along with other performance issues here:http://www.jot.fm/issues/issue_2003_09/column3  

Re: Obfuscating rt.jar
While it would be possible to obfuscate just the internal classes and methods (e.g. stuff in the com.sun.* heirarchy), it would also make stack traces in bug reports less useful or more tedious to understand. A better idea would be to find a way of obtaining line number information (for those stack traces) without paying a memory penalty until (if) a stacktrace was actually requested.  

Also in Java Today

From StringTokenizer to Scanner
There is more than one way to parse text-based content. The Core Java Tech Tip From StringTokenizer to Scanner looks at the difference between using java.util.Scanner and java.util.StringTokenizer. The tip "demonstrates that rather than using StringTokenizer, it's better to use the split() function included in the String class, or move to other regular expression-based solutions such as Scanner."

Too many classes
Kode Vicious warns that "One of the biggest problems when people use an object-oriented language is that when they realize how easy it is to create yet another class, they do." His recommendation is to start by taking smaller bites out of your problem (which he argues is better accomplished with a scripting language). In his response to a question about valid input he suggests using a whitelist containing a list of input you accept rather than a blacklist. "Whitelists can be very restrictive but they have a distinct advantage over blacklists in that the only time you have to change a whitelist it to make it more permissive."

Have you switched your development to J2SE 5.0 yet?
Completely
Partially
Not at all
Don't intend to
Poll Results | Archive

Online Communities Resources: Helen Chen, java.net Site Manager, has started a JavaPedia page About Online Communities. She has seeded the page with an impressive list of Papers and Articles, Books, Journals, and Lists, and Organizations, websites, and related online communities. She notes that the list is preliminary and invites you to add your favorite resources. Below the line at the bottom of the page feel free to discuss any related issues.

Success Stories | Archive

safari.java.net
Related Links




 XML java.net RSS