November 14th, 2003
Web development site SitePoint has recently started a series of articles on Java in it’s Spotlight on Java and J2EE. A new article is published everyday, and the quality is good.
SitePoint is popularly-known as one of THE places for PHP articles (its PHP forum is also one of the busiest) - this shift in focus to enterprise technologies is encouraging, since I’ve always thought newer web developers tend to view PHP as the end all and be all to getting a serious job in web development. This is my opinion of course, and in no way should this be construed as trolling! :-)
Are you a Java developer? Come help make the Java forum (it’s currently called the “Java, ColdFusion and Other Languages” forum, but that will soon change in our proposed forum structure changes) more lively. We need more members to help grow the Java forum, be they leaders in discussions or fledging newbies.
September 1st, 2003
From atog: found this very interesting keyboard spinner with code (in Java) posted. I tried it out and it works! There’s a hypnotic effect watching the lights flashing.
August 14th, 2003
Stephen Ferg claims
A programmer can be significantly more productive in Python than in Java.
in his article “Python & Java: a Side-by-Side Comparison“. The basis of his argument centres around dynamic typing in Python, among other things like code verbosity.
August 13th, 2003
Joshua Bloch and Neal Gafter’s recent JavaLive chat further talks on generics and typesafe enums, 2 of the more significant new language features in the Java 1.5. There is interesting discussion on generics especially.
My favorite though is the enhanced for loop which is similar to the foreach construct in languages like PHP and Python.
The following example reads “for each Object in the Collection C…”:
void displayAll(Collection c) {
for (Object o : c)
((String)o).display();
}
I’ve always found the Java (and C/C++) for-loop idiom to be overly wordy and reduces code legibility, so this is a welcome addition.
Related links:
Previous interview with Joshua Bloch
June 26th, 2003
I’m confused by BEA Weblogic Server’s implementation of JMX. I’ve been trying to figure out how WLS 8.1 allows configuration and addition of new services so that I can run JADE (Java Agent DEvelopment Framework) as a managed service (via JMX).
Basically, it would be a “port” of BlueJADE (which works for JBoss) for WLS. Now if only I could figure out from the BEA documentation how to add a managed service, but the JMX edocs were of no help - lots on how to manage MBeans, nothing on how to actually deploy one for a new service.
It appears that WLS’s and JBoss’s JMX implementations are quite disimilar enough that there isn’t any resemblance in their XML descriptors nor their directory structures - I’m lost on how to proceed. And looking at how JBoss manages all it’s services via JMX, with configuration descriptors (*-service.xml files) clearly visible in the server directory, I can really see how JBoss’s microkernel architecture really pays off in this respect. I didn’t even need documentation to figure out how it works in JBoss!