Skip to main content

PMD static Java code analysis tool

How many times have you, in your developer life, smacked our head and screamed "that was sooo obvious!" upon discovering a bug ? And how many times those were pretty simple bugs that could have been caught just by looking closely at the code and finding a silly mistake ? I'm guessing too many times.... :-) PMD, no real meaning to the acronym (see here), is a pretty handy tool that if used with some frequency can help you at least save your head from the smacking. PMD is a Java code analysis tool that draws from an experience-driven rule set to look into your code and flag possible mistakes. From unused imports to the always error prone braceless if statement, PMD can give you a pretty good coverage of what you can do to improve your code and reduce the probability of making a silly mistake. PMD can be run from within your ant or maven build file should you want to make running it part of your build process. You can find plugins for most of the popular IDEs to make it even simpler to run it and enhance your code. PMD is extensible letting you add your rules should you wish to enforce any kind of rule to your project. Finally, PMD is open sourced, licensed under a BSD-style license and available at sourceforge. All in all a pretty cool and valuable tool to improve your development process and maybe keep your development team a bit saner.

Comments

Popular posts from this blog

Free Webinar: How to get off the mult-format content treadmill

Free Webinar: Friday, September 21 12-12:30 pm (ET) How to wrangle ALL your content types into one beautiful online hub… and get off the treadmill for good! It never lets up. First it was publications and conference materials. Then blogs and social media. Then webinars, infographics, podcasts and online courses. You keep cranking them out, but where do they all go? How can you keep your communications investment from evaporating at the speed of Twitter? Tizra lets you bring it all together into a great-looking, searchable, mobile-friendly website that delivers long-lasting value to your audience. In 30 minutes you will learn... How to broadcast and curate mixed media types for maximum impact. How to categorize content for ease of use and maintenance. How a well-tuned search can reveal hidden gems. REGISTER NOW!

More Eggs in More Baskets: How the AWS Outage Made Us Stronger

Like a lot of web companies, we learned some hard lessons from the Amazon Web Services outage of a few weeks ago.   We didn't lose a single byte of data, but we resolved never again to put one service provider—no matter how large and diversified—in a position where its failure could cause a serious interruption in service for our customers. As promised, we 've now finished setting up automated data backup and redundant server infrastructure in facilities maintained by a completely separate company:  Softlayer Technologies .  Like AWS, Softlayer maintains the high security and reliability standards we require, including SAS 70 Type II Certification and PCI DSS Compliance.  And their Texas location adds geographic diversity to the Virginia and California regions Amazon gives us access to. This is in no way the end of our efforts to improve reliability and security.  We'll keep refining backup, failover and recovery processes to ensure not only that our customers' dat

Yum! Tizra Eats Its Dogfood

We keep talking about how Agile PDF makes it easy for nontechnical users to do sophisticated online publishing. Well, tell a story like that long enough and people start to wonder why you're not doing it yourself. Besides, any product benefits when its designers and builders are also users. Software developers call it eating your own dogfood . So a few nontechnical members of the Tizra team dug in (with Joya, pictured above, as menu advisor). We did it just they way any publisher would, applying our company branding with the Agile PDF control panel and basic CSS skills, then uploading PDFs . The only difference is we're not actually publishers, so we used files freely available on the web, and of course, we're giving them away rather than selling them. Voila! The New Agile PDF Demo Site Take a look . Then drop us a note , and we'll show how you can do the same—and a lot more—with your content. All of us, except maybe Joya, found it quite the best dogfood we