What do you use Java for?

Status
Not open for further replies.

jmmv

Ars Scholae Palatinae
970
Hi all

I've got recently interested in Java: Servlets, JDBC, SOAP... there are lots of interesting things that can be done with it! And fairly easy.

ITOH, I don't think Java is right for a GUI application... Well, I haven't seen much, so I can't oppine on this yet.

So, what do you use Java for? Or better said, which kinds of programming does it covers better?

Thanks for your time ;)
 

Thank You and Best of Luck!

Ars Legatus Legionis
21,219
Subscriptor
I used to use Java for developing Servlets for the sake of teaching myself how.

Now I use Java to develop Desktop Applications that run on Win2k, MacOS X, and Solaris. The apps use Java Swing, Java Foundation, and Java2D. My current project deals with vector graphics and vector format deployment. I've found Java to be an adequate Desktop Application development language so long as you are willing to find some fancy work-arounds to some things omitted from the Java Swing classes.

Before I even had myself and my team start the project I built a proof of concept model application in MacOS X using Cocoa and Quartz. This was a much more elegant and speedy way to build the application, but one of the primary requirements for the software was that it be able to run on Windows2000. And since the Cocoa API is only for MacOS X I had to come up with another set of API's to use, so I picked the Java API's listed earlier.

Anyhow that's enough rambling :) I've used Java for a lot of things, and it does a pretty good job. For internet development, nothing really beats it as far as I'm concerend. Well WebObjects does, but now all WebObjects apps are deployable on any server which has a Java 2 distribution, and things are plenty speedy. WO really just gives you a better set of object frameworks to build with.

-Nathan
 

Thank You and Best of Luck!

Ars Legatus Legionis
21,219
Subscriptor
Originally posted by pelican:
A stomping pad, a resume builder, a sticking point...

No, but really, I only use Java for learning about object-oriented programming. And it is incredibly valuable just for that... knowing how to apply OOP in other (sometimes bastardized) OOP-supporting languages is great. (Actionscript? PHP? C++?) As a concept, and a time-saver.

--pelican

LOL :) Actionscript... I've always loved how Macromedia tries to pass that thing off as being an OO paradigm language. It has the weirdest structure. It would seem to make sense that you ought to be able to make your Flash symbols be the basis of your objects, but instead your objects are really individual frames. So a frame becomes the container for data and actions, and that's never really sat well with me :). With Flash 4 it wasn't very bad, but wasn't very powerful. Since Flash 5 and the new Actionscript I just found the paradigm so clumsy that I just didn't bother bringing myself up to date and moved on to other endevours :)

-Nathan
 

MikeApp

Ars Centurion
257
Subscriptor
JSP/Servlet development. (Go Tomcat!) It is actually maintainable, which I never thought was the case when I wrote Perl/PHP (could just be me though). I certainly feel much more comfortable developing a large project in Java.

I've also been developing a Swing app lately and found it to be reasonable. It is certainly easy enough to work with, even without using any RAD tools (I loathe generated code, except for general prototyping). I think many people get their first view of Swing in java-based IDEs, which are fairly huge applications.
 

gumbo

Ars Tribunus Angusticlavius
6,107
I do OSS GUIs using Swing - with some attention it is not really horrible - don't show components you don't need to until they need to be - JBuilder seems to show components that are not critical in order to create the, then hides them again. Since the startup time is so high, create it later and then hide that copy, not the one you are not even sure if you are going to use or not.

Cross platform stuff can suck majorly though - slightly different JVM implementations and you get a wierd, unfixable bug.

gubmo

[This message was edited by gubmo on March 11, 2002 at 22:30.]
 

green_buddy

Wise, Aged Ars Veteran
126
Originally posted by PeterB:

Paying bills.

LOL... well yes, I suppose that's the case now isn't it! :D

I seem to use it for anything and everything. With the jdk versions reving out every year or so the SDK has become much more library rich. When I started using it AWT was tough, and then mixing Swing with AWT was even tougher until someone explained the problems between light and heavy-weight components. But that was about 4 years ago now. Swing is the way to go on the client, and J2EE is the way to go on the server with all types of libraries out there to do just about anything you want from mail and smtp libs, to gui, to J2EE (Servlets, jsp's, and ejbs), to SOAP, and JAXB.

You chose, it seems to be quicker in development, and way easier in the maintenance phase too. Whatever you want, Java's the way to go, and is getting better all the time. :cool:

-green
 
Originally posted by java jockey:
so I take it the phone is ringing off the hook for corporate .Net development?
As it happens, that's what I'm doing right this minute. I didn't say or imply that I used Java solely for paying bills, only that that is what I used it for.

I certainly wouldn't use it for fun, which isn't true of other languages or platforms.
 

skriefal

Ars Scholae Palatinae
1,056
We're using Java for quite a few things. The project I've worked on for the past 3 years is almost entirely Java-based, and will be 100% Java after we remove a few remaining bits of native code. What does this do? It's a web-based airline reservation and ticketing system. Everything is done with Java... web page generation, reservations database, proper pricing of airline tickets (you wouldn't believe how complex the airline industry has made that), communication with a wide range of external airline and reservation systems through TCP/X.25/teletype/etc, incoming messaging through XML and SOAP, and many other things.

Performance is quite adequate, and everything works exactly as it's supposed to -- barring bugs in our code, of course :).

I hate writing GUIs in Java, however. But then I hate writing GUIs in any language...
 

Thank You and Best of Luck!

Ars Legatus Legionis
21,219
Subscriptor
Originally posted by MrMills:It's impossible to create a superb GUI in Java.

I agree to some degree, when using Swing or AWT. It's kind of a product of the position Java get's put in as a "cross-platform" development language. It's near impossible to build a UI that can be run on Windows, MacOS, or X that really fits the UI paradigm of each respective OS. I find one of the biggest problems with designing a UI with Swing is the Layout. All the Layout managers are aweful and limiting, and it's just too much trouble to setup a program to use absolute or relative coordinate positioning. So getting fine control of the UI layout is an exercise in frustration at times.

However you can use Java as the "Model" and "Controller" code layers of a Cocoa application on MacOS X, where the actual layout and design of the UI can be built using InterfaceBuilder and the nib archived class files.

-Nathan
 

BlackHex

Ars Tribunus Angusticlavius
9,638
Subscriptor++
It's impossible to create a superb GUI in Java.
Simple, direct, to the point. And true.
Nope - from what I've seen that is in fact not true. Provided one is prepared to put in enough time and to ignore (to some degree) the premise that the UI should integrate with all the systems on which it runs it is in fact possible to produce a good UI.

Layout managers are in fact superb (golly - did I just say that?) it's just that they take alot of learning and are a fairly radical departure from the previous ways of building a GUI.

On the other hand alot of the default swing and awt code is basically junk - it is however possible to recode this from scratch and acheive something worthwile.
 
Hhmmm. Well, I always think of things in "What's the best tool for the job?"

For web development, Java is excellent. My opinion of course.

I worked on a project last year my company did for AT&T and it came out great. There was no money in the budget for a database and there was an assload of information to be stored, so we used XML/XSLT and stored it all as text, all dynamically assembled and driven by Java.

For all that happens under the sheets, performance is amazingly quick too.

Shameless plug: http://att.com/traveler
 
Status
Not open for further replies.