This Code Is CRAP (2011)

Hacker News Top Tools

Summary

The author highlights Crap4J as a valuable tool for identifying dangerous code in Java projects without false positives, praises its Jenkins integration, and notes its incompatibility with Java 7.

No content available
Original Article
View Cached Full Text

Cached at: 09/16/26, 06:11 PM

# This Code is CRAP Source: [https://testing.googleblog.com/2011/02/this-code-is-crap.html](https://testing.googleblog.com/2011/02/this-code-is-crap.html) We are using Crap4J for years now within our JAVA projects and it's the only tool which identifies "dangerous" code\. Even the Jenkins/Hudson integration is nice\! All code coverage tools will deliver lot's of false positives\. I don't have to test a method like: public Value getValue\(\) \{ return value; \} That's common sense, but a tool like CodePro or JaCoCo forces me to write dumb tests\. Only Crap4J rocks that way, even it has not been modified since a couple of years\. Now it's time to do something, because JAVA7 code is not running with Crap4J\! Reply[Delete](https://www.blogger.com/comment/delete/15045980/2320694855233268028)

Similar Articles

1jehuang/jcode

GitHub Trending (daily)

jcode is an open-source coding agent harness designed for multi-session workflows with low resource usage, offering CLI installation and performance improvements over existing agents like Claude Code and Cursor Agent.

Bad Code Is Kudzu

Hacker News Top

The article compares bad code to invasive kudzu, emphasizing the need to proactively remove features from codebases to manage complexity, especially with AI-generated code, illustrated by the author's experience deleting an unused hashtag feature.