aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Swing: handcode versus IDE generated code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing: handcode versus IDE generated code" Watch "Swing: handcode versus IDE generated code" New topic
Author

Swing: handcode versus IDE generated code

miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
Is this really a dilemma? Does the book makes us embrace hardcode in desfavor of auto generated code from IDEs?
In times of costs reducing, is it still worth the time consuming han(r)d code instead of instant produced gui with IDEs?
Can the book make me choose the hardway of doing it, showing me the really advantages?


java amateur
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

My non-book related 2-cents worth...
If there was 1 IDE that everyone used to code GUI's then I would be all for it. As open as the Java Community is and as many choices as there are this makes things difficult for GUI builders in an IDE.
The reason for this is there is no common standardized structure for spitting out the source code. Also, most GUI builders that I know of (Netbeans in particular) write some pretty nasty code for the GUI that I wouldn't dream of doing. So future maintence of an application can become a nightmare because you are trying to dicipher what an IDE spit out. Granted this is the same case if a developer hand codes the GUI for someone else to maintain, but chances are it will be structured better.
Anyway, with all that being said, even if there was a standardized structure for IDE generated Swing source code, I would still do it all by hand.


GenRocket - Experts at Building Test Data
maggie woo
Ranch Hand

Joined: Dec 18, 2003
Posts: 35
exactly! it is very costly to refactor code generated by the IDE, even if you use the IDE to do the refactoring.
and then, there's the peter principle
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Originally posted by maggie woo:
and then, there's the peter principle

Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
PeterPrinciple


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
maggie woo
Ranch Hand

Joined: Dec 18, 2003
Posts: 35
Originally posted by Lasse Koskela:
PeterPrinciple

wow, that's interesting... this is probably a better reference by far. mine is more or less my interpretation of it as it was passed along to me...
[which i deleted, but i realize i removed the pertinent comment, which is that it was irrelevant to this thread and should have been in a signature]
apologies for detracting..
- maggie
[ April 27, 2004: Message edited by: maggie woo ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Swing: handcode versus IDE generated code