Article:
  Seven Low-Cost Ways to Improve Legacy Code
Subject:   IntelliJ IDEA
Date:   2004-04-28 19:39:49
From:   michaelcherichetti
IntelliJ IDEA can help out with 4 of these:


1. Picks up on unused variables as you code. The code inspector can find them too.


2. Built in formatter.


3. The code inspector can find things that will be final and walk you through applying final to everything you want. It's slick as are a lot of other things in the code inspector.


5. Has a "Convert Anonymous Class to Inner" refactoring.

Full Threads Oldest First

Showing messages 1 through 5 of 5.

  • IntelliJ IDEA
    2004-04-30 07:20:35  boriskraft [View]

    Besides using the built-in inspector (already mentioned), Idea lets you opt to show (color code) that a local parameter or var can be final. See Settings->Errors for that option.

    Great article by the way, I'll check out your book.
    - Boris
  • IntelliJ IDEA
    2004-04-29 16:25:40  Robert Simmons, Jr. | O'Reilly Author [View]

    Since I have never used IntelliJ, I will take your word for it. =) However, Eclipse can do these things as well, especially the new M8 version; and for a lower cost.

    However, whichever tool you use, make sure to turn on thos options and use the tools available! =)
    • IntelliJ IDEA
      2004-04-29 18:20:38  michaelcherichetti [View]

      You should try it, you'll never utter the word Eclipse again if you do, take my word for it :) The only reason I suggested IntelliJ was that you said in #3 that you didn't know of any tools that could automate the process and also said that Eclipse couldn't do it, so can it do it or not?

      Anyway, I agree that the tool doesn't matter as long as it gets the job done, but please don't do yourself the injustice of ruling a tool out just because it costs money. In my opinion, IntelliJ is a *steal* at $499.

      By the way, I love your book. I am a long user of final to prevent logic errors. When someone argues with me nowadays about it I direct them to your book, so thanks for that chapter :)
      • IntelliJ IDEA
        2004-05-01 15:12:17  mikeunicode [View]

        - I'd like you to give us some clue about how to Set up Eclipse to do this code checking, and publish that as a major article on OnJava.
        I've run into problems attempting to use open source projects( developed with using Eclipse ) with JDeveloper catching errors in the libraries, making them unusable.

        - What version of JBuilder are you denigrating?
        JBuilder X catches more bugs than I care for actually.

        I'm not a big fan of Eclipse.
        Using SWT breaks the Pure Java mantra.
        Is this IBM's smart move to turn Java into a fragmented Unix environment. IBM can then have a Big piece of a much smaller pie.


  • IntelliJ IDEA
    2004-04-28 19:40:35  michaelcherichetti [View]

    Oops, "that will be final and walk you through" should be "that *can* be final and walk you through"