General information

J

js_dev

General Tips

If you're new to Java, after the first few days, do consider using an
IDE with intellisense like JCreatorPro (JCreator Lite is free but has
no intellisense) or IntelliJ IDEA or Gel(GExperts.com) or Eclipse.
JCreatorPro is excellent and so is IntelliJ IDEA. JCreatorPro is
written in C++ making it fast. IntelliJ IDEA has excellent
intellisense. It has a free Open Source license, if you tell them the
name of your project and where it is put up. Eclipse is more than
intellisense It thinks as you type. By far the best. But you need to
invest a few days getting used to it. A refreshing alternative is Gel -
it is FREE and has excellent intellisense. Eclipse has the best
possible online support community and everyone is switching to Eclipse
these days.

Alternatively, you can take the hand-coding route, but will get stuck
at debugging for which the solution is to use any of the few free
visual debuggers available on the www like JSwat and jGRASP.

All the above mentioned IDEs have good intellisense. But don't just sit
over the feature - when you get the popup dropdown, make sure that you
take time to scroll down and see all the methods, variables and
constants of the particular object. This is the fastest method of
getting familiar with the library and it is also a method full of
pleasant surprises.
The comprehensiveness of the library strikes you and so do the design
aims of the libraries - they are meant to solve common programming
tasks - so that you do not have to re-invent the wheel anywhere.

Importing packages:
Beginners often make mistakes at importing the right package or class.
Remember that

import javax.swing.*;

does not allow access to everything in the tree under javax.swing.
It only allows the classes one level under javax.swing. So, for
something inside javax.swing.tree (that is javax.swing.tree.something)
you have to put the line

import javax.swing.tree.*;

or if you know exactly what you want (expert level)

import javax.swing.tree.DefaultMutableTreeNode;

Order of definition of fields/methods not important:
In Java, you can define the fields (data members of the class) after
the entire listings of the method members which use the fields (without
yet being defined in the source file).
This shows that the java compiler reads through the entire file once
before checking for definitions that are absent. Also, you can write
calls to methods that are defined later on in the file without
providing declaration stubs at the beginning as in C.
 
O

Oliver Wong

Roedy Green said:
I think you need to define "intellisense". It sounds at first a bit
like GL/70 or Retsyn (which turned out to be corn sugar).

I vaguely remember this being a Microsoft trademark. The anecdote was
that they had hired a consultant to come up with a name for the technology
of "automatically guessing what you want and doing it for you" (something
Eclipse does frequently and effectively; something Microsoft's Clippy does
less effectively) and he had come up with some awful name (something like
"Zorbon").

Depressed, the Microsoft Office team had to come up with a name for
this. After a few beers, they decided to list some adjectives describing
this feature. Someone tried to say "Intelligence" but being slightly tipsy
instead said "Intellisense" and they decided to use that as the name.

- Oliver
 
T

Thomas Weidenfeller

Oliver said:
Depressed, the Microsoft Office team had to come up with a name for
this. After a few beers, they decided to list some adjectives describing
this feature. Someone tried to say "Intelligence" but being slightly tipsy
instead said "Intellisense" and they decided to use that as the name.

Yep, and while still in this condition, they went on to add the next
"cool" feature to Word. PUI - Programming under the Influence ... That
would explain it.

/Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,173
Latest member
GeraldReund
Top