Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Fun with Eclipse

Reply
Thread Tools

Fun with Eclipse

 
 
Roedy Green
Guest
Posts: n/a
 
      07-03-2005
my old slickedit has gradually gone south trying to deal with new Java
1p5 syntax, so I decided to bite the bullet and try to do a project in
Eclipse.

The process was remarkably easy.

Eclipse does things for you all the time in the background without
being asked.

Thee formatter is the most configurable I have ever seen but it won't
do the "correct" layout I have using for years.

I is a whole new way of working . Instead of using search replace you
find by navigating a tree or by clicking to find definitions and
references.

Every time you hit save it recompiles.

I love the way it cleans up messy Javadoc, and finds and fixes syntax
errors with just as much anal retentiveness as it handled the code
itself. You can configure everything. It is beautifully done so you
instantly see the effects of what you are asking for on some sample
code.

It is slow to start, but I never had to wait for it once it got going.

The downsides:
it has its own error messages which are petty bad.
Don't try any of the fancy stuff like global rename, method reordering
until you have a clean compile. It can turn your code to much.
Happily the undo works back past your save.

Global rename actually works. It seems so effortless when you use it,
no big deal. You change an enum constant and all code is instantly
converted to it.


The biggest problem I had is it hops all by itself from module to
module and I sometime think I am working on code X when it really
somewhat similar code Y. Further other than by deleting a file, I
could not get it to ignore a file for a while. Not even renaming it to
non-java extensions worked. It still tried to recompile it.

the import filters did not work, but other than that most seems to
work as advertised, even without reading the help.

I miss block cuts with right mouse other than that this thing seems to
do everything but eat.

I am very impressed the way it can navigate imperfect code. I would
prefer something that protected you more from screwing things up. It
can be such a bitch when a stray { turns a class fop top level to
nested or vice versa.


It is fun seeing some of the ideas I promoted about years ago in my
scid essay now realised. See http://mindprod.com/projects.html#SCID


It does not seem to have sensible idea of priority. I will fuss about
JavaDoc before it gets to the serious syntax errors. By default it
should sort with the worst problem on top. Perhaps this is because by
default javadoc testing in turned off.


--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/...s_rumsfeld.htm

Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
 
Reply With Quote
 
 
 
 
IchBin
Guest
Posts: n/a
 
      07-03-2005
Roedy Green wrote:
> my old slickedit has gradually gone south trying to deal with new Java
> 1p5 syntax, so I decided to bite the bullet and try to do a project in
> Eclipse.
>
> The process was remarkably easy.
>
> Eclipse does things for you all the time in the background without
> being asked.
>
> Thee formatter is the most configurable I have ever seen but it won't
> do the "correct" layout I have using for years.
>
> I is a whole new way of working . Instead of using search replace you
> find by navigating a tree or by clicking to find definitions and
> references.
>
> Every time you hit save it recompiles.
>
> I love the way it cleans up messy Javadoc, and finds and fixes syntax
> errors with just as much anal retentiveness as it handled the code
> itself. You can configure everything. It is beautifully done so you
> instantly see the effects of what you are asking for on some sample
> code.
>
> It is slow to start, but I never had to wait for it once it got going.
>
> The downsides:
> it has its own error messages which are petty bad.
> Don't try any of the fancy stuff like global rename, method reordering
> until you have a clean compile. It can turn your code to much.
> Happily the undo works back past your save.
>
> Global rename actually works. It seems so effortless when you use it,
> no big deal. You change an enum constant and all code is instantly
> converted to it.
>
>
> The biggest problem I had is it hops all by itself from module to
> module and I sometime think I am working on code X when it really
> somewhat similar code Y. Further other than by deleting a file, I
> could not get it to ignore a file for a while. Not even renaming it to
> non-java extensions worked. It still tried to recompile it.
>
> the import filters did not work, but other than that most seems to
> work as advertised, even without reading the help.
>
> I miss block cuts with right mouse other than that this thing seems to
> do everything but eat.
>
> I am very impressed the way it can navigate imperfect code. I would
> prefer something that protected you more from screwing things up. It
> can be such a bitch when a stray { turns a class fop top level to
> nested or vice versa.
>
>
> It is fun seeing some of the ideas I promoted about years ago in my
> scid essay now realised. See http://mindprod.com/projects.html#SCID
>
>
> It does not seem to have sensible idea of priority. I will fuss about
> JavaDoc before it gets to the serious syntax errors. By default it
> should sort with the worst problem on top. Perhaps this is because by
> default javadoc testing in turned off.
>
>


Yes, Eclipse is nice. The best part are all of the free plugins that you
can use from the eclipse tools project or the open source projects and
plug-ins at http://www.eclipse.org/community

There is also nice collection of plugins at

http://www.eclipse-plugins.info/eclipse

http://www.eclipseplugincentral.com/

Good information at the Eclipse Wiki at http://eclipsewiki.editme.com

Are you using the latest 3.1 version. I found that this loads much
faster than any of the 3.1 milestones versions.

--


Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
__________________________________________________ ________________________

' If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      07-04-2005


I have had some more experience with the beast and I wish I had read
the following few paragraphs before I started. I got is so much
trouble trying to modify Eclipse *.java files behind its back. My
changes kept disappearing.

Eclipse is a true SCID.

You may have no interest in how Eclipse works under the hood, but you
had better understand at least as much as I am about to explain. This
means its stores your Java source code in a structured database. This
is how it can navigate so quickly, do global renames, refactor, find
references and declarations instantly, compile instantly and undo
changes, etc. It does not use Javac.exe at all (except in an ant
build). It tokenises your source as you type and uses its own
incremental/background compiler when you hit save.

Every time you click save at saves a conventional *.java copy of the
class source on disk along with a corresponding compiled *.class file.
However, if you modify one of those files, delete it, rename etc.,
nothing happens. It is as if Eclipse were oblivious to your changes.
The true copy of your program is inside the database. To allow other
programs to change your source code, don't touch Eclipse's *.java
files. They there mainly for curiosity, for backup and for CVS. In the
case the entire Eclipse database were corrupted, you would lose
nothing since your last save, even if you had no backup of the eclipse
database itself.

Instead of meddling with Eclipse's *.java files, export, fix with your
conventional tools and editors and the import the back again.

Import is the trickiest feature of Eclipse. Check after every import
that your new source overrode the old and went into the correct place.
It is so easy to mess up and effectively lose all the work you did
outside Eclipse. If you screw up, you can compare Eclipse files with
your exported ones, correct your copy of the files with Diffzilla, and
reimport them. Again, there is no point in using Diffzilla to directly
fix the Eclipse files.
--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/...s_rumsfeld.htm

Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      07-04-2005
On Sun, 03 Jul 2005 10:41:23 -0400, IchBin <(E-Mail Removed)> wrote or
quoted :

>Are you using the latest 3.1 version. I found that this loads much
>faster than any of the 3.1 milestones versions.


I am using 3.1. I tend to just leave it up. If I want to do
something else, I just leave it running.

I played with TaskManager but it did not seem to want to tell me just
how much real memory that was costing me.

--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/...s_rumsfeld.htm

Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      07-04-2005
On Sun, 03 Jul 2005 10:41:23 -0400, IchBin <(E-Mail Removed)> wrote or
quoted :

>
>Are you using the latest 3.1 version. I found that this loads much
>faster than any of the 3.1 milestones versions.


After I get more familiar with it, I will try compiling it with Jet to
see how that speeds it up, especially the loads.

--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/...s_rumsfeld.htm

Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
 
Reply With Quote
 
Chris Smith
Guest
Posts: n/a
 
      07-04-2005
Roedy Green <(E-Mail Removed)> wrote:
> After I get more familiar with it, I will try compiling it with Jet to
> see how that speeds it up, especially the loads.


I'm not very familiar with Jet, but the fact that 95% of Eclipse's code
is loaded via not only dynamic loading, but also a very heavily tweaked
custom classloader might frustrate your attempts to get a big
performance boost from static compilers. It's likely that practically
the entire application will be JIT compiled anyway.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
Reply With Quote
 
Raymond DeCampo
Guest
Posts: n/a
 
      07-04-2005
Roedy Green wrote:
> On Sun, 03 Jul 2005 10:41:23 -0400, IchBin <(E-Mail Removed)> wrote or
> quoted :
>
>
>>Are you using the latest 3.1 version. I found that this loads much
>>faster than any of the 3.1 milestones versions.

>
>
> I am using 3.1. I tend to just leave it up. If I want to do
> something else, I just leave it running.
>
> I played with TaskManager but it did not seem to want to tell me just
> how much real memory that was costing me.
>


To get a real feeling for memory using Windows Task Manager, you should
add the "Virtual Memory" column to your view.

Ray

--
XML is the programmer's duct tape.
 
Reply With Quote
 
Chris Smith
Guest
Posts: n/a
 
      07-04-2005
Raymond DeCampo <(E-Mail Removed)> wrote:
> To get a real feeling for memory using Windows Task Manager, you should
> add the "Virtual Memory" column to your view.


As always when analyzing performance data, interpret the values with
caution.

Since Java is garbage collected and has a somewhat sophisticated
collector, it can depend on the memory pressure of the system. For
example, if Eclipse claims to be using 200MB of memory in task manager,
that may be because the garbage collector hasn't seen a good enough
reason to run collection recently. Modern JVM versions do release
memory to the operating system occasionally, and that number may quickly
shrink when memory is needed.

A more complete process viewer can show you the working set size, which
is generally a better indicator of the total memory "tied up" with that
process.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      07-04-2005
On Mon, 04 Jul 2005 02:44:11 GMT, Raymond DeCampo
<(E-Mail Removed)> wrote or quoted :

>To get a real feeling for memory using Windows Task Manager, you should
>add the "Virtual Memory" column to your view.


I did. IT does not seem to fluctuate though if what they meant by that
was real ram used.

--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/...s_rumsfeld.htm

Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      07-04-2005
On Sun, 3 Jul 2005 20:20:37 -0600, Chris Smith <(E-Mail Removed)> wrote
or quoted :

>I'm not very familiar with Jet, but the fact that 95% of Eclipse's code
>is loaded via not only dynamic loading, but also a very heavily tweaked
>custom classloader might frustrate your attempts to get a big
>performance boost from static compilers. It's likely that practically
>the entire application will be JIT compiled anyway.


That is no problem. If they dynamically loaded files live in the jar,
or you make a list of them, Jet will precompile them to.

I tried this out with my Holidays application that dynamically loads
little classes to describe each possible holiday.

--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/...s_rumsfeld.htm

Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OT Thursday, uh, fun, yeah, fun! Consultant MCSE 17 02-10-2007 03:39 AM
3 PIX VPN questions - FUN FUN FUN frishack@gmail.com Cisco 3 03-16-2006 02:25 PM
OT: Wednesday follow-up-to-Tuesday-Fun Fun Ken Briscoe MCSE 0 07-14-2004 01:41 PM
Programming is not as much fun/more fun than it used to be. Andy Fish Java 65 05-18-2004 08:24 PM
Fun fun fun Luke Computer Support 3 10-07-2003 03:45 PM



Advertisments