When Should We Use Java

[See also WhenShouldntWeUseJava, WhenShouldWeUseCeePlusPlus, SmalltalkInsteadOfPython]

[From the "What's new" page of Borland JBuilder 3.5 (free! for Linux!)]

I've looked at lots of C and C++ libraries that attempt to provide a tool for multiple-platform GUI development. Java wins by having a standard that actually works. It is not really multi-platform unless MacOS is included.

Well I am looking at this page, last edit July 26, 2000, and it's now Dec 1, 2000, and Sun has definitely got back into the Mac world with Java. JDK 1.3 has very good support for Mac and OS X. Swing now encorporates proper handling of the global application bar even. -- StevenNewton

WhenShouldWeUseJava? When we care about ease of development and time to market, but don't care enough to write it in Smalltalk.

WithAllDueRespect, the confusion over having so many different behaviours with different combinations of JVM and libraries makes the ease of development issue moot. And for time to market Java is easily outcompeted by VB, Perl, & Python. As for Smalltalk ... when should we use SmalltalkInsteadOfPython?

I won't comment on VB for database apps since I haven't used it. However, the amount of hype that Zope is getting is a mystery to me. Zope sounds promising at first, but after reading the documentation, it looks to me like a needlessly confusing framework that uses a proprietary database and doesn't scale.

ZopeApplicationServer provides an OpenSource OODB, but also adaptors to most commercial RDBs. If you need it to scale you can pay for ZEO (ZEO is now free!), which gives you a cute ThreeTierArchitecture. As to "needlessly confusing", that depends on your background. For me, it's frighteningly intuitive. -- PeterMerel

Also, I don't see why anyone would recommend ASP over JSP for reasons other than Microsoft compatibility. ASP lacks portability, type-checking, and exceptions. At work, all the developers want to drop ASP support in our product because it's so annoying to maintain both and not be able to throw exceptions from methods that are called from the web pages.

I also don't see how applets could be "obsolete". They aren't nearly as useful as ordinary web pages, but for what they do, there's nothing as widely supported by browsers.

-- BrianSlesinsky

Java seems to provide a balance between technical, business, and vendor concerns. Does choosing Tk/Python/Perl/Zope really give major business benefits over Java? Do these languages really result in 20%+ productivity gains over Java? I have my doubts.

Sometimes making a business decision involves standardizing on something for a while so you don't have to re-invent the wheel too often. Right now, Java is that language, especially in larger businesses (banks, finanical houses, manufacturing, etc.). -- StuCharlton

The benefits of a particular language depend entirely on the task you're solving. When you need a Perl OneLiner?, writing several dozen lines of Java or C would be ridiculous. On the other hand, it seems equally ridiculous to write a raytracer in Perl or Java, or an applet in C or Perl.

For me, with about a year of experience in both Perl and Java, the productivity difference is closer to 200% than 20%. But at work we are currently moving towards JavaServlets, and I strongly support that move, because I don't think I and my coworkers could be as productive as a group in Perl as in Java. Let's face it, I'm the PerlGuru? around here - the productivity increase for myself would be eliminated in CollectiveCodeOwnership, since I'd have to intentionally simplify my code to avoid it becoming a NoGoArea to those with less Perl experience.

Perl gives you enough rope to hang yourself. It also gives you enough of it to weave yourself a comfortable hammock, if you only know how. Java is more like a wooden chair - less flexible and comfortable, but anyone can use it without risking getting horribly tangled up in it. -- IlmariKaronen

Do these languages really result in 20%+ productivity gains over Java? I have my doubts.

Yeah, I agree. These kind of statements rarely have any value. 20%+ productivity gain for what kind of problem domain!? What solution domain? For parsing text or for server-side processing on WebServer? For enterprise wide business applications? For reactive distributed systems? Workflows? If we are purely looking at the business domain, this field is even so varied it would be hard to say.

As a long time Perl programmer and 2 year java programmer, I can say the following about Perl productivity: The biggest problem with perl was finding good developers.

-- DaveTauzell


EditText of this page (last edited April 8, 2008) or FindPage with title or text search