3D creature feature
Programming should be fun
We featured the Fluidium project a while back. You can run the Java WebStart version to play with this JOGL based application. It was a nice example of using WebStart and a great and accessible example of using the Java APIs for Open GL.
Fluidium developer, Gerald de Jong, has written a feature article on Making Fluid 3D Creatures with JOGL. In his introduction he points out that " Most modern computers are equipped with a ridiculously fast chip that's dedicated to graphics processing, but Java programs rarely get the chance to make it sing. With the JOGL API, we now have a way to let the GPU take over the lion's share of the math, which suddenly makes Java the language of choice for a lot of 3D applications." Gerald's article is a nice introduction to working with JOGL.
Speaking of fun, the games guys are online today in Projects and Communities. java.net bloggers Doug Tilleager and Jeff Kesselman are in the hot seat for today's Java Live chat on Sun Game Server Technology. Join in July 20 11 a.m. PDT and ask about the high fault tolerance and scalability and support for your MMPG development.
The Java Generic Algorithms project aims to "provide functionality roughly analogous to the portions of the C++ STL library that are not already provided by standard Java or the Generic Java package." JGA is part of the Java Patterns community.
In Also in Java Today , Eric Giguere's recent Mobile Tech tip, A Custom List Component for MIDP 2.0, shows you how to display a list of information without depending on a component that directly manages the data it displays. His solution " uses callbacks to obtain the data to display, in effect delegating the management of the data to the application."
N. Alex Rupp continues his series on Container Driven Testing on TheServerSide. This third part focuses on advanced EJB testing practices and includes a look at Configuring multiple EJB Containers
Isolating component subsets,
Testing against a full-blown EJB Server,
Mock object techniques with real components,
and Testing thread safety.
Chet Haase starts a conversation about ImageIO
ImageIO: Just another example of better living by doing it yourself
he shares two utilities, one is used to scale some images, the other converts BMP images to JPEG. The feedback provides a critique of his approach.
" What big established software is there that's new? On my computer I have running: Mozilla, Outlook, Word, Excel, Photoshop, and jEdit. All of those, except for jEdit (a Java program), stem from a code base that is at least 7 years old. Excel is twenty! There simply aren't any new big desktop applications." Answer Joshua Marinacci in his post Myth: There aren't any commercial apps written in Java.
Richard Monson-Haefel says goodbye to blogging on java.net in his explanation of his new role in the Java industry. Good luck Richard - we'll keep your blog open in case you want to come back.
"Do you always make the constructor private on your helper classes? What's the worst that can happen if you don't? Are helper classes good object-oriented practice?" That's how Ron Hitchens introduces Item 3 in the discussion of "Effective Java"
n today's Forums.
Hlovat makes a correction with regards to Item 1 - static factory methods instead of constructors.
"You need to be careful not to confuse the Gang Of Four (GOF) pattern factory, with a static factory. As the name static factory implies the factory is a static method. The GOF factory is an instance factory, i.e. you need an instance of a class and the factory uses this instance to make another object of the same type. IE an instance factory is a bit like clone, except that you can also change values as well as making a new object." Cyberfox adds that "Since the constructors can only return an actual newly created object, I convert everything to use a static factory method on the object, and if it's a bad value, I return a 'public static final' psuedo-null value. This is common when creating objects from data provided by external sources that change often, and don't always provide 'good' data."
Daniel Wellman asks for help with Item 2 - enforce the singleton, "recently I've read in a few places about the 'decline in fashionability of the singleton', so I'm interested to hear more opinions on this."
In today's java.net News Headlines
- Richard Monson-Haefel Bids Farewell
- Gosling Gets Groovy
- Sun's Java Branding Push
- BEA WebLogic Server Process Edition
- Netty 1.5.0
- OpenWFE 1.3.1
- MagicDraw UML 8.0 Beta
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 href="http://today.java.net/today/archive/">java.net Archive.