All thos web developers out there...read in!

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

rh71

No Lifer
Aug 28, 2001
52,844
1,049
126
Originally posted by: damiano
Java has much more libraries that already exist to do millions of thing (sessions, mail, XML tools etc..)

This is precisely what is keeping me from learning Java as easily as CF (which, by the way, is even easier than PHP). All these pre-existing libraries. If I want to get something accomplished through Java as my very first experiment, I would have to search through all the libraries to see if something already exists. These libraries come with JDKs... Right? If something doesn't exist, I have to create it in such a way that it'd be ready for re-use elsewhere - and package it up. How does a newbie go about getting started with Java if there's SO MUCH to dig through already?

I understand classes and methods up to this point (was never an OOL programmer)... and even created a simple command-line program that just did a bit of math and spat out the answer at the end. I'm on like Day 4 of SAM'S TEACH YOURSELF JAVA 2 IN 21 DAYS... I'd like to know how to get over that LIBRARIES hump without having to dig thru it all first. Know what I mean? Or maybe I just have to keep reading. My real question: do I go about learning Java by writing everything from scratch, then start to make use of libraries as I get more familiar with them?
 

ElDonAntonio

Senior member
Aug 4, 2001
967
0
0
Originally posted by: rh71
My real question: do I go about learning Java by writing everything from scratch, then start to make use of libraries as I get more familiar with them?

That's pretty much how we learned C++ in our engineering cursus. First learn how to do all by yourself (so you develop a strong basis and knowledge of the language), then discover there are librairies that can do this very easily and effectively (ex: STL).
 

damiano

Platinum Member
May 29, 2002
2,322
1
0
Originally posted by: rh71
Originally posted by: damiano
Java has much more libraries that already exist to do millions of thing (sessions, mail, XML tools etc..)

This is precisely what is keeping me from learning Java as easily as CF (which, by the way, is even easier than PHP). All these pre-existing libraries. If I want to get something accomplished through Java as my very first experiment, I would have to search through all the libraries to see if something already exists. These libraries come with JDKs... Right? If something doesn't exist, I have to create it in such a way that it'd be ready for re-use elsewhere - and package it up. How does a newbie go about getting started with Java if there's SO MUCH to dig through already?

I understand classes and methods up to this point (was never an OOL programmer)... and even created a simple command-line program that just did a bit of math and spat out the answer at the end. I'm on like Day 4 of SAM'S TEACH YOURSELF JAVA 2 IN 21 DAYS... I'd like to know how to get over that LIBRARIES hump without having to dig thru it all first. Know what I mean? Or maybe I just have to keep reading. My real question: do I go about learning Java by writing everything from scratch, then start to make use of libraries as I get more familiar with them?


completly right...
Start writting your stuff from scratch (Imean...don't go to reinvent servlets or JSPs with your own way to talk to application servers but for the rest...start doing your own things)
then the more you do it, the more you learn of what's available out there...
I don't even know hlaf of the packages that are out there...
The way I usually go about it is our best friend : "google" just search for classes that do what you need...they might be ij the JDK or not.
The thing is that you have two types of classes : the ones that come nativly with your JDK, and then packages written by people out there that you can just download, setup and use (for free or not...)
example of native packages: EJB's, mail, etc..etc..
other classes that I have downloaded from the web: xml servers, chat servers...and much more.
Now, when you write a class, you do not HAVE TO package it nicely so anyone else can reuse it...
you will actually realize that most of the application you will write are so customized that I actually does not make sense for other people to use them...
This is why your first step is to package it and make reusable your yourself :)
Then, you might grow to the point where you can write cool classes that other people might be able to use...


hope this makes sense

cheers

Damiano

ps: I just realized this is the longest post I ever wrote on AT :Q
 

rh71

No Lifer
Aug 28, 2001
52,844
1,049
126
... and quite possibly the most useful to me that I've ever read!!! ;) Much appreciated for the direction. I was feeling lost for awhile...
 

dejitaru

Banned
Sep 29, 2002
627
0
0
I loathe java script with every fiber of my being. Try server-side scripting.
jscript gives those bastards too much control of my machine
If any site requires jscript, I skip it.
 

damiano

Platinum Member
May 29, 2002
2,322
1
0
Originally posted by: dejitaru
I loathe java script with every fiber of my being. Try server-side scripting.
jscript gives those bastards too much control of my machine
If any site requires jscript, I skip it.

there is a world of difference between java a nd javascript
 

jonmullen

Platinum Member
Jun 17, 2002
2,517
0
0
Originally posted by: damiano
Originally posted by: dejitaru
I loathe java script with every fiber of my being. Try server-side scripting.
jscript gives those bastards too much control of my machine
If any site requires jscript, I skip it.

there is a world of difference between java a nd javascript

In fact they are almost mothing alike. Netscape just licensed the name java to try and get people interested and learning it.