Eclipse PMD Plug-In

The Eclipse PMD plug-in finds code that isn't up to the standards you define, improving the code's consistency and preventing the avoidable production bugs.

Most developers like to write clean code. So, why is so much code in the world messy? Although there are many opinions about this, there are two contributing causes that very most everyone will agree on.

One of the reasons is that there is rarely enough time to write code as cleanly as we would like. Even when code starts clean, the continual refactoring from changing requirements, shifting dependencies, and the inevitable bug fixes (often a result of the first two factors) leads to messy code just as surely as short deadlines and long hours make an organized person's desk become littered with piles of unfiled papers and unfinished notes.

The other reason that is generally agreed on for code in the real world not being as clean as it starts out in our minds is because not everyone generally agrees with what clean code should look like. Some people are more certain that their version is cleaner than another, and there are people who hold different opinions with equal conviction. For example, in which row does the opening brace of a method belong? This is an example where I'm fairly certain I am not the only person who has had endless email threads and inconclusive meetings. The one, final answer will not be decided in our lifetime.

Even though the coding standards of an enterprise or project team may begin as a democratic process, they will not be useful as a benchmark until their definition evolves to a benevolent dictatorship (remember, I am discussing business, not government here). Once the standards are defined, a third reason for not meeting them comes into play; there are usually more rules than most folks can memorize, or remember when the time pressure is on or when the rules of one project differ from those of another. For these causes of messy code, I have found PMD to be the best solution based on its flexibility and ease of use. The letters themselves do not really stand for anything. The creator(s) just thought they sounded good together. The PMD home page supplies several "backronyms" to explain it.

Read the Rest of this Article at Developer.com

Related Articles
- User Code: W3Eval
This user has created a Java applet that evaluates mathematical expressions more 'naturally' than the common calculator. Check it out.
- Updating and Upgrading with Eclipse
Regional Articles
- Eclipse PMD Plug-In Alabama
- Eclipse PMD Plug-In Alaska
- Eclipse PMD Plug-In Arizona
- Eclipse PMD Plug-In Arkansas
- Eclipse PMD Plug-In California
- Eclipse PMD Plug-In Colorado
- Eclipse PMD Plug-In Connecticut
- Eclipse PMD Plug-In DC
- Eclipse PMD Plug-In Delaware
- Eclipse PMD Plug-In Florida
- Eclipse PMD Plug-In Georgia
- Eclipse PMD Plug-In Hawaii
- Eclipse PMD Plug-In Idaho
- Eclipse PMD Plug-In Illinois
- Eclipse PMD Plug-In Indiana
- Eclipse PMD Plug-In Iowa
- Eclipse PMD Plug-In Kansas
- Eclipse PMD Plug-In Kentucky
- Eclipse PMD Plug-In Louisiana
- Eclipse PMD Plug-In Maine
- Eclipse PMD Plug-In Maryland
- Eclipse PMD Plug-In Massachusetts
- Eclipse PMD Plug-In Michigan
- Eclipse PMD Plug-In Minnesota
- Eclipse PMD Plug-In Mississippi
- Eclipse PMD Plug-In Missouri
- Eclipse PMD Plug-In Montana
- Eclipse PMD Plug-In Nebraska
- Eclipse PMD Plug-In Nevada
- Eclipse PMD Plug-In New Hampshire
- Eclipse PMD Plug-In New Jersey
- Eclipse PMD Plug-In New Mexico
- Eclipse PMD Plug-In New York
- Eclipse PMD Plug-In North Carolina
- Eclipse PMD Plug-In North Dakota
- Eclipse PMD Plug-In Ohio
- Eclipse PMD Plug-In Oklahoma
- Eclipse PMD Plug-In Oregon
- Eclipse PMD Plug-In Pennsylvania
- Eclipse PMD Plug-In Rhode Island
- Eclipse PMD Plug-In South Carolina
- Eclipse PMD Plug-In South Dakota
- Eclipse PMD Plug-In Tennessee
- Eclipse PMD Plug-In Texas
- Eclipse PMD Plug-In Utah
- Eclipse PMD Plug-In Vermont
- Eclipse PMD Plug-In Virginia
- Eclipse PMD Plug-In Washington
- Eclipse PMD Plug-In West Virginia
- Eclipse PMD Plug-In Wisconsin
- Eclipse PMD Plug-In Wyoming
Related Articles
- Updating and Upgrading with Eclipse
Follow these steps for smoother updates of minor releases and less painful migrations to major releases.
- User Code: W3Eval

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

Topics:
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML