Thursday May 18, 2006
Hell Freezing Over
The title of this article should not be credited to me, but Mike Milinkovich from Eclipse in his blog entry about a contribution to the CVS sourcebase for Eclipse. Honestly, I can't defend the contribution (personal bias) and my only comment about the usefulness of SWT in the context of portability and compatibility is that this sort of change shouldn't be necessary to use Eclipse on Solaris/x86.
Swing works just fine thank you very much.
In my mind, it proves once again that SWT is the wrong solution.
So ... Milinkovich says they won't change the name ... but consider embracing the purity of the Java platform completely by dropping SWT and perhaps the gulf between tools like NetBeans and Eclipse won't be as wide. Posted by brewin May 18 2006, 03:31:13 PM PDT Permalink Comments [10]
Posted by Wayne Beaton on May 19, 2006 at 03:36 PM PDT #
How portable is that ?
The platform itself (RCP/SWT) is non-portable as opposed Swing itself (any application which uses Swing will work anywhere ... )
Case in point ... if you've been following the "Semplice" project news from JavaOne, where a small team has been working on getting BASIC language programs running on the Java platform, in one evening a team member (Herbert) quickly built and deployed a Swing-based "VB/Java" application to the SavaJe phone that being sold at Moscone. Now that's portability.
I understand the L&F concern ... however given a one-time investment in having Vista L&F support built into Swing (demonstrated at JavaOne) that still allows you to take your application and run it on Solaris, Linux and a host of other operating platforms unmodified ... isn't that of much greater value ?
Posted by Robert Brewin on May 19, 2006 at 05:16 PM PDT #
Your original argument was that SWT is bad because you have to write some platform specific code for it to work. My argument back is that you also have to write some platform specific code for Swing to work (does the file chooser dialog look the same on Windows and Linux?). When it comes down to it, somebody has to write platform specific code for both (at one level or another).
I can run Eclipse RCP applications on my phone. You're right... that's portability.
I can run an SWT application on Solaris, Linux, and a host of other operating systems unmodified. The fact that Solaris X86 wasn't supported before this patch was a point-in-time problem. Just like Swing not having a Vista look was/is a point-in-time problem.
Posted by Wayne Beaton on May 19, 2006 at 06:12 PM PDT #
Posted by Donald Smith on May 20, 2006 at 08:00 AM PDT #
(Oh, and as for the phone bit ... I think the point was missed ... the Swing-based code from the Semplice team just ran unmodified on a phone that supported Swing ... that's any phone, not one that someone did the widget work).
On a completely separate topic, note that my primary disagreement is with SWT, not necessarily Eclipse ... I'm a huge fan of NetBeans (yes, I'm biased) ... but because of Eclipse, it has forced NetBeans to improve ... to the point where I believe in many areas it is superior (granted that while there are areas where Eclipse is better, don't count on that remaining so forever). Talking to a large number of developers at JavaOne this past week, I found it interesting that a reasonably significant number actually used both ... Eclipse has some features (mostly related to the editor) that these developers preferred for certain tasks while in others (Java EE, W/Ss or for such tools as Matisse), NetBeans was what they used.
Competition is good ... and I suspect that this will remain a highly-competitive and useful (especially to the developers) two-horse race
Posted by Robert Brewin on May 20, 2006 at 04:46 PM PDT #
Posted by Donald Smith on May 20, 2006 at 06:44 PM PDT #
Now, a huge point in Swing's favour is that it is available anywhere Java is. Well... almost anywhere. J2ME doesn't include Swing, does it? So... as long as your phone is capable of running J2SE then you've got Swing. And for the phone to support Swing, doesn't somebody have to do the widget work at some (AWT) level?
I happen to prefer SWT. I don't hate Swing. Take a gander over my last two weeks of blog entries if you want proof.
Posted by Wayne Beaton on May 20, 2006 at 09:21 PM PDT #
Now granted you have to remember that surveys may be suspect (depends on sample size, the questions asked, etc.,) but Evans is usually a good source for developer data.
In this survey, the Eclipse (and derivative IDEs) are roughly 1/3 again more popular than NetBeans (and it's derivatives) ... but NetBeans is currently showing a higher growth rate (this year) ... thus a two horse race.
Cheers!
Posted by Robert Brewin on May 20, 2006 at 10:11 PM PDT #
Posted by zoft on May 21, 2006 at 01:00 PM PDT #
Comments are closed for this entry.