13.07.2015 Views

JDJ 10-1.indd - sys-con.com's archive of magazines - SYS-CON Media

JDJ 10-1.indd - sys-con.com's archive of magazines - SYS-CON Media

JDJ 10-1.indd - sys-con.com's archive of magazines - SYS-CON Media

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LabsJBuilder 2005by Borland S<strong>of</strong>tware CorporationReviewed byKen SipeKen Sipe is the CEO andfounder <strong>of</strong> Code Mentor, Inc.He provides coding, mentoring,and training in OOAD andJava technologies. In addition,Ken is an internationallyrecognized speaker in the field<strong>of</strong> distributed computing,speaking <strong>of</strong>ten at JavaOne,NFJS, and BorCon.kensipe@codementor.netThere is an old joke in whicha man is seen coming from a<strong>con</strong>servation area with a heftycatch <strong>of</strong> fish. After noticing thepr<strong>of</strong>iciency <strong>of</strong> the fisherman whenothers had come back empty-handed,a park ranger decides to tag alongwith him. When they get to a specificlocation, the fisherman lights a stick<strong>of</strong> dynamite and throws it in the water,retrieving a huge quantity <strong>of</strong> fish.While the ranger begins to explainthe illegal nature <strong>of</strong> the fisherman’sactions, the man lights another stick,hands it to the ranger, and says, “Doyou want to talk?…or do you want t<strong>of</strong>ish?” Borland, with JBuilder, seems toask a similar question, “Do you wantto play, arrange, and mess with yourdevelopment environment?…or doyou want to code?”It isn’t possible to provide anin-depth review <strong>of</strong> all <strong>of</strong> JBuilder’sfeatures in this short article. Whilepreparing to write this review, I downloadedJBuilder 2005’s feature matrixand found it was 32 pages! This articlereviews JBuilder 2005 Enterprise Edition,which was released to the publicAugust 2004. However, since I was inthe group <strong>of</strong> beta testers, I had usedJBuilder 2005 for several months priorto its public release.Editor FeaturesSignificant improvements can befound in the editor. MemberInsighthas been updated to become SmartMemberInsight. Instead <strong>of</strong> the dropdowndisplaying all methods for agiven object, it’s filtered to the mostlikely candidates. This can be very <strong>con</strong>fusingat first and takes some gettinguse to. Depressing ctl+h will expandthe filtered list to all possibilities. Keymappings can be adjusted to providethe previous behavior.ErrorInsight is fairly new in JBuilderand provides a welcomed approachto agile development. Essentially, anyerrors written in code will be highlightedby ErrorInsight flags. Alt+enterinvokes the ErrorInsight to provideoptions; for example, when used witha TDD approach, referencing classesthat don’t exist yet causes JBuilder toask if it should search for the referenceor create a new class. Similarly,if a method is used that throws anexception, the provided options (dependingon code location) are “AddThrows Clause,” “Add Catch Clause,”and “Surround with Try/Catch” (seeFigure 1).Development help can also begleaned from code audit. This newfeature highlights potential <strong>con</strong>cerns.For instance, a comparison <strong>of</strong> twostrings with the “==” operator is usuallya mistake. With code audits, thiscode is highlighted with a description<strong>of</strong> the issue. This feature can get annoyingdepending on code style. Forinstance, it complains that code afteran if statement needs to be in a codebody. Each <strong>of</strong> these audits can be <strong>con</strong>figuredon a project-by-project basis,but again illustrates another deficiency:there doesn’t appear to be a way toexport and import preferred audit listsfor a department so it can be used inanother project. Hopefully this will beextended in the future to work like ErrorInsight.If the tool knows that codeaudit’s preference is to put code in acode block after an if statement, whydoesn’t it assist with that? This is stilla welcome feature though as manyFigure 1 ErrorInsight exampleBorland S<strong>of</strong>tware Corporation<strong>10</strong>0 Enterprise WayScotts Valley, CA 95066-3249Phone: 800 632-2864E-mail: customer_service@borland.comWeb: www.borland.comSpecifications PlatformsWindows 2000 – Windows XP, OSX, Solaris 9,Linux (<strong>of</strong>ficial support for Sun Java Desktop andRed Hat Enterprise Linux 3)PricingEnterprise: new – $3,500; upgrade – $1,900.Developer: new – $500; upgrade – $299.Foundation: free (including for commercial use)Test EnvironmentDell Inspiron 8200, 2GHz Intel P4 processor, 60GBdisk, 1GB <strong>of</strong> RAM, Windows XPprojects spend thousands <strong>of</strong> dollarson products for this specific item.It should be mentioned that some<strong>of</strong> the best features <strong>of</strong> JBuilder are notintuitively obvious, like intelligentcode editing. For instance, the smartpaste feature, through refactoring,cuts several lines <strong>of</strong> code and pastesthem in another class, and JBuilderasks if the associated imports shouldbe added.JDK 5A noteworthy must-have forJBuilder 2005 is its support for JDK 5.Provided support includes help iden-48 January 2005www.<strong>SYS</strong>-<strong>CON</strong>.com/<strong>JDJ</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!