This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
My name is not Eric/Brian but as a selfish person I'll state my preferred tools for the job. Refactoring: I use Eclipse, which by default comes with refactoring support. For my use it's more than enough. However, a plugin called PMD is quite helpful in pointing out places where refactoring would be appropriate, based on some metrics. Coding standards: I've used Checkstyle (Eclipse plugin, Ant task) to make sure that the code I'm producing complies with the coding standard in use. Related to forcing coding standards, I'd be interested to hear about projects where e.g. Checkstyle was integrated into a source control system (in a way that checked in code would be run through a "formatter" or a "validator"). I've been planning to do something like this with Ant and Checkstyle for a while but haven't had the time/enthusiasm to do it.
I have a tool called "RefactorIt"- and believe me- don't use it. Maybe its evolved since I "won" fully licenced version about a year ago, but its not a very good tool. I use Eclipse for refactoring now.
I also use Eclipse for refactoring. IDEA is even more powerfull here as far as I know, but I don't use it for other reasons. We don't use a tool to enforce coding standards, though we use a code formatter to help us conform to it. I don't think we need more - why do you think you do?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Joined: Jan 23, 2002
Originally posted by Ilja Preuss: We don't use a tool to enforce coding standards, though we use a code formatter to help us conform to it. I don't think we need more - why do you think you do?
Because only 10% percent of the multi-vendor organization are complying with the standards put down on paper... Some of the vendors are using a different build system for their part of the system so that's basically out of our control but for the rest of us, located in a single space, having an enforced check/fix step for coding standards compliance would probably make a difference. Rarely a day goes by when I don't hear a colleague cry in pain while looking at something as ingenious as
And that's not a fake! We found it today from another vendor's code. If there are these kind of interesting statements, you bet they are also breaking the coding standards as well... I consider myself one of the more pedantic personalities when it comes to the form of code but I still don't trust myself with certain things -- I make mistakes and I know it.
We both use IDEA. It's not free, though. Eclipse is a free Java IDE that has refactoring support. We like IDEA because it's very intuitive and easy to use. I tried using Eclipse about a year ago and deleted it after about thirty minutes because I could not get a simple project created. Of course, Eclipse may be better now. Intellij IDEA
2. Enforce coding standards
Checkstyle is a very popular code format enforcer. Checkstyle
Author of <a href="http://www.amazon.com/exec/obidos/ASIN/0596003870/ref=jranch-20" target="_blank" rel="nofollow">Java Extreme Programming Cookbook</a>