Wednesday, February 11, 2009

Java Tools - Finding bugs, optimization and profiling

There a few tools for Java developers that can help us to be "better" programmers, (a bad programmer will allows be bad...). Finding bugs, optimization and profiling make part of a programmer day life, and why not using tools like these ones:

FindBugs

«FindBugs, a program wich uses static analysis to look for bugs in Java code»


http://findbugs.sourceforge.net/


«PMD scans Java source code and looks for potential problems like:

  • Possible bugs - empty try/catch/finally/switch statements
  • Dead code - unused local variables, parameters and private methods
  • Suboptimal code - wasteful String/StringBuffer usage
  • Overcomplicated expressions - unnecessary if statements, for loops that could be while loops
  • Duplicate code - copied/pasted code means copied/pasted bugs

PMD is integrated with JDeveloper, Eclipse, JEdit, JBuilder, BlueJ, CodeGuide, NetBeans/Sun Java Studio Enterprise/Creator, IntelliJ IDEA, TextPad, Maven, Ant, Gel, JCreator, and Emacs.»



http://pmd.sourceforge.net/


«YourKit, LLC is a technology leader, creator of the most innovative and intelligent tools for profiling Java & .NET applications. The YourKit Java Profiler has been already recognized by the IT professionals and analysts as the best profiling tool.

With YourKit solutions, both CPU and memory profiling have come to the highest professional level, where one can profile even huge applications with maximum productivity and zero overhead.

There are several, recent innovations to profiling that have gained well-deserved popularity among professional Java developers, both in big and small companies.

YourKit is the standard-setter in the evolution of profiling tools.»

http://www.yourkit.com/

No comments: