↓ Skip to main content

Eclipse 3.2

·259 words

I am running on a new Eclipse 3.2.0 in the shop right now. It’s pretty nice with some cosmetic tweaks and it feels a bit faster.

Most noticeably it has a Memory Monitor in the bottom with a button to force GC. I like the indication but I am opposed against the GC button.

Eclipse Memory Monitor

It was always common practice to teach Java programmers that calls to System.gc() are harmful. The system usually is the better judge when it is necessary to collect. Programmers calling gc() can never really know if it is necessary and end up harming performance.

Two problems:

  • If a programmer of an application cannot even be the judge of when to call gc(), how can a user know when to call it? It is pretty ridiculous exposing a call like this to the GUI.

And the usability is zero. Pressing the button completely freezes the system (as expected) and ends up with some more free memory. If you needed that free memory, the system would already have collected the garbage for you.

  • More subtly, the message sent by exposing this button to a programmer who is building his own Java application in Eclipse is that it is ok to call gc(). This is a bad message promoting bad programmer practices spreading gc calls throughout Java applications because Eclipse says it is all right.

Thoughts?

Maybe it is not completely evil. Right clicking on it reveals some memory profiling options which might be handy if you’re into that sort of thing.

IDEs should promote good programmer practices.

Alper Cugun
Author
Alper Cugun

Related

Super Happy

·82 words
The presentations from the previous SuperHappyDevHouse are really cool. I had already seen the Using Python to get money and chicks but the following two are also very worth watching:

HTML 5

·123 words
I was reading this article on the future of web technology. It gives a good overview of the current state of technology, future directions and a two way consolidation which I hope is going to take place.