Are we finally getting our act together with technology?

0

This morning I was thinking about the state of the computer industry and I have to say I fell pretty good about the direction many of us are moving in. Agile processes are all the rage in the enterprise, Unix is a mainstream operating system, there is an excellent and very pragmatic Lisp tutorial, and the semantic web is entering the public eye.

This is a great time to be a technology craftsman.

New Metric: C.R.A.P.

0

The good folks at Agitar have proposed a new metric, C.R.A.P and an Eclipse plugin crap4j for executing it.

C.R.A.P. combines a method’s complexity with its coverage to come up with a single number that can help you determine if somebody will say, “Oh crap!” when they have to work with it. The formula is:

CRAP(m) = comp(m)^2 * (1 – cov(m)/100)^3 + comp(m)

Read their article for details on deciding if a system is crappy or not.

To test the flexibility of Panopticode I decided to implement a C.R.A.P. Supplement. It took a little over an hour.

Looking at the results I was pleased to find that only one method in Panopticode exceeds Agitar’s C.R.A.P. threshold of 30. Unfortunately that leads me to believe that 30 is too high. Right now, there is a lot of spike code in Panopticode right now that I consider crappy ;->