YOUR FEEDBACK
Stuart Lodge wrote: Is anyone else developing this control forwards? Can I update the control and re...


2008 East
DIAMOND SPONSOR:
Data Direct
Frontiers in Data Access: The Coming Wave in Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
Intel
Virtualization – Path to Predictive Enterprise
Green Hills
IT Security in a Hostile World
JBoss / freedom oss
Practical SOA Approach
GOLD SPONSORS:
Software AG
The Art & Science of SOA: How Governance Enables Adoption
PlateSpin
Effective Planning for Virtual Infrastructure Growth
Fujitsu
Automated Business Process Discovery & Virtualization Service
Ceedo
Workspace Virtualization
Click For 2007 West
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts
SYS-CON.TV
TOP THREE LINKS YOU MUST CLICK ON


Java 1.4 and the Rest!
Java 1.4 and the Rest!

Guess what? It’s JavaOne month. That came around fast – and don’t panic if you’re sitting there wondering where the year went; it hasn’t, well not yet anyway. JavaOne is earlier this year, with only a nine-month gap from the previous one. It’s moved back to its old March time slot, which makes traveling and staying in San Francisco a little cheaper. Early reports indicate that attendance will be down this year, but I think that’s a good thing – it was getting too big. Never enough time for all the sessions you want to attend or to talk to the people you want to meet. We’ll report next month on the jewels we uncover and you can read about the goings on at www.sys-con.com/java.

Java 1.4
Last month Sun officially launched its latest JDK. It will be awhile before it enters mainstream usage, as it takes a significant amount of time before vendors and developers are confident enough to release products that are 1.4+ only. I have an interview scheduled with the senior project manager of 1.4, Sherman Dickman. I’ve been garnering questions from all around; you may have spotted me asking for them in various mailing lists. Now that I’m armed, I’ll be posing these questions to Sherman and you can read the answers in next month’s JDJ. One thing that I will comment on with respect to the new 1.4: a lot of people don’t seem too bothered about the extra features or API enhancements. A lot of the questions are centered on speed and memory usage. If you’ve downloaded the new 1.4 and have run some benchmark tests on it, I’d love to hear your views.

How Many Lines of Code?
I’ve been lurking around some of the Java mailing lists and am continually amused at some of the postings. In fact, let me scrub that, I’m scared to death of some of the posts. There are people out there who obviously believe they’re Java programmers and, more important, have probably managed to convince others of this too; it’s spiraling out of control, I tell you. We may laugh, but it’s these sort of people who have a major impact on our industry and the language. Java doesn’t need any more bad press since .NET is on the horizon, and if these people can’t get their projects working in Java, their managers will look to alternatives, citing Java as the reason for project failure, not the incompetency of the developer who claimed to have known Java.

Allow me to give you an example that may send you running for the hills. There was an innocent enough question posted on the list regarding JDBC and how to retrieve the number of results in a given ResultSet, preferably without resorting to rewriting your SQL, or performing an additional SQL query such as a COUNT(*). It was a good question and since the API doesn’t actually give you a single method for this, it’s a fair enough question for someone new to JDBC. The question wasn’t the issue; it was the array of answers that tickled me at first until I read the one that scared the life out of me. Before I give you the answer in question, remember the poor guy who posted the problem in the first place. He just wants an answer and is relying on the skillset and expertise of a mailing list to guide him. If I were him, I would be so confused; he’d be better off not asking the question in the first place.

The majority of the answers centered around the [while (Res.next()) noRows++;] answer, which works beautifully. It may not be the most efficient way, but it works. Somebody posted a reply and never twigged it was actually a VisualAge wrapper class (and don’t get me started on the evils of the IDE!). Using third-party tools is not a bad idea and is to be encouraged if it makes your life easier. But don’t make huge leaps of faith based on them.

The post that sent shock waves through me was the one that stated that because there was only one method call being made [getRowCount()], it was much faster than all the other methods presented in this thread. Wow...major leap of the faith there, but without disparaging the poster completely, you can see the logic – well, almost! There was, of course, the plethora of posts afterwards, trying to explain to him that the third-party wrapper had no more magic at its fingertips than the JDBC driver, and therefore was probably doing the underlying [while] method of determining the number of rows. But the issue here is that this guy posted the solution in all seriousness and good faith and, at the time, really believed in what he was saying (I wonder if he was certified!).

There was, of course, a major fundamental software engineering principal lacking; as I talk to more and more people, and listen on various mailing lists and newsgroups, I see this sort of example time and time again. These are people who think they know what they’re doing, and to that end have the tenacity to be advising others. Blind leading the blind.

Nothing would give me more satisfaction than having Java as the number-one programming language, but to do this we need to keep the quality up and help where we can. If you’re unsure, don’t post anything – you’ll only lead others astray. Which is why there’s always the standard question: Where can I go for good quality answers? To be honest, very few places and generally only those that are moderated. I would, however, recommend www.jguru.com , which I’ve found comes up trumps time and time again.

I think the moral of the tale is this: don’t believe everything you read on a computer screen!

On a somewhat related note, I see Mr. Gosling headed into some controversial water last month and was quoted as saying: “IDEs are generally targeted at low-end developers – people who are not experts at writing code.” It was interesting to hear him say that, particularly in this environment where the likes of ANT and Emacs are coming back into fashion. Apparently, James is working on a new kind of IDE, which I suspect he’ll want to give another name to to distance his creation from the mainstream IDEs.

So with that thought, I’m off! Catch ya next month!

About Alan Williamson
Alan Williamson is Editor-in-Chief of Cloud Computing Journal and is SYS-CON's "Cloud Computing Bootcamp" Instructor. He is widely recognized as an early expert on Cloud Computing. Alan is a Sun Java Champion and creator of OpenBlueDragon (an open source Java CFML runtime engine). With many books, articles and speaking engagements under his belt, Alan likes to talk passionately about what can be done TODAY and not get caught up in the marketing hype of TOMORROW. Follow his blog, http://alan.blog-city.com/ or e-mail him at cloud(at)alanwilliamson.org.

YOUR FEEDBACK
javaid aslam wrote: The author has made a very serious and worth-paying-attention-to remarks about the incompetency of many Java developers. Unfortunately, the situation is not very different with any other kind of language or programming environment. It is probabbly a natural byproduct of the "demand" that now a days just anybody w/o any formal training gets to claim a programmer. A good programming language and environment can impose some discipline, but the basic standards can not be changed much. And the basic standards of software engineering in general, is pathetic! So is the standard of most IT managers. wonder if there is anybody who pays any attention to Watts S. Humphrey's recommendations.
Mike wrote: Your points are well made. I would have to disagree regarding VisualAge. It is nice having the repository built into IDE. I would also be interested in hearing more feedback regarding the 1.4 API
LATEST JAVA STORIES & POSTS
One of my projects over the recent holiday was to rebuild the home network. Working on a home network is a different sort of beast than working on a network for a company. There are different challenges to be addressed. After doing a fair amount of research, I settled on the use ...
Project Insight has announced the release of version 8.0 with an interactive Gantt chart, an updated interface, and additional shortcuts for navigation. Project Insight helps project teams collaborate on project schedules, share documents and assets, allocate project resources, a...
Active Endpoints has announced that it has made available a new learning tool for Java developers in the form of a complete and fully documented service-oriented architecture (SOA) application, written in ActiveVOS. The "Vintage Old Stock" application automates a fictional classi...
"Q-layer's technology and expertise will enhance Sun's offerings, simplifying cloud management and speeding application deployment," said Sun's SVP of Cloud Computing and chief sustainability officer, David Douglas, as the company today announced that it has acquired Q-layer, a c...
Only if you were on the dark side of the moon could you have missed the impact of the iPhone. Its sweeping success has brought mobile services into the mainstream. As the first device to convincingly integrate traditional phone capabilities with Web access, it highlights the mult...
SCAN (Schools and Colleges Administrative Network) has announced the addition of Bridgton Academy to its list of Independent Schools using Campus Café, a Java-based single database student information system built specifically for small and mid-sized institutions. “Bridgton Ac...
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021

Click Here

SYS-CON FEATURED WHITEPAPERS

SPONSORED BY INFRAGISTICS
In every field of design one of the first things students do is learn from the work of others. They ...
There are many forces that influence technological evolution. After a decade of building enterprise ...
2008 is going to be an important year for Rich Internet Applications. Most organizations are deliver...
The OpenAjax Alliance is developing an Ajax industry wishlist for future browsers, using a dedicated...
Infragistics announced the availability of two Community Technology Preview (CTP) User Interface (UI...
The YUI development team has released version 2.5.2; you can download the new release from SourceFor...
ADS BY GOOGLE