HN 日本語サマリー

← 一覧へ戻る
プログラミング

コードはゴミである

Code Is Crap (testing.googleblog.com)

69 pointsby luispa46 コメント

要約

この記事は、ソフトウェア開発における「CRAP」(Change-Risk-Aversion-Propagation)という概念を紹介し、コードの品質を定量化する試みについて論じています。CRAPスコアは、変更リスク、回避性、伝播性といった要素からコードの「悪さ」を測る指標です。コメント欄では、CRAP4jツールのダウンロードリンク切れや、Java 7との互換性問題、そしてコードカバレッジツールに関する議論が交わされています。全体として、コードの保守性や品質に対する課題と、それを測定・改善しようとするエンジニアたちの試行錯誤が伺えます。

全文翻訳

Testing Blog

This Code is CRAP

Tuesday, February 22, 2011

[画像: Share on Twitter][画像: Share on Facebook]

Google

Labels: Alberto Savoia

7 comments :
  1. [画像]

    UnknownFebruary 22, 2011 at 6:35:00 PM PST

    Hi,
    I found CRAP and the video interesting.
    I wanted to run it on my project and check the amount of CRAP currently in there.But, the links for downloads do not work.
    I tried to get the Eclipse Plugin.
    But I get the Repository not found error.
    -Panna

    ReplyDelete

    Replies

    Reply

  2. [画像]

    saschaFebruary 28, 2011 at 7:27:00 AM PST

    Sorry, but your CRAP4j-Plugin is crap :-).
    I got "gateway timeout" (Update site) or many "Unable to find feature.xml in directory": ...\features\org.crap4j.eclipse.feature_1.1.6.jar

    ReplyDelete

    Replies

    Reply

  3. [画像]

    gregMarch 2, 2011 at 9:53:00 AM PST

    Ha, finally people will understand why I print-and-paste testing-related articles in the office's toilets !

    ReplyDelete

    Replies

    Reply

  4. [画像]

    UnknownMarch 9, 2011 at 10:43:00 AM PST

    I found the idea and the process you described to get to the final formula very interesting. Did you write that up as research paper somewhere? I'd love to get more details on that.

    ReplyDelete

    Replies

    Reply

  5. [画像]

    תומר גלנץMarch 13, 2011 at 3:05:00 AM PDT

    Thanks for the post!

    ReplyDelete

    Replies

    Reply

  6. [画像]

    UnknownMarch 20, 2012 at 11:11:00 PM PDT

    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!

    ReplyDelete

    Replies

    • [画像]

      UnknownMay 13, 2014 at 5:36:00 AM PDT

        Hi, there is a simple hint to make Crap4J work with JAVA7!
        See: http://devophuman.blogspot.de/2014/05/running-crap4j-out-of-box-with-java7.html
      
        [Delete](https://www.blogger.com/comment/delete/15045980/2407780382452060616)
      
        Replies
      
        Reply
      

    Reply

Add comment

Load more...

New comments are not allowed.

Labels

[画像]

Archive

[画像]

Feed

[画像]