CPANTS Fly

Ovid on 2005-09-20T17:07:18

I'm going to have to start rereleasing some modules to swat that annoying CPANTs fly. I wasn't planning on it. I know that the quality of my modules is generally good, but after reading and commenting on the Perl QA list about CPANTs and Kwalitee, I realize that if there is a metric by which someone can judge my code, they will. It's easier for me to just make that a non-issue than to explain the (potential) error of their ways.

What's worse is me envisioning a job interview several years down the road where I hear the words "about this mediocre CPANTs rating you have".

Now to figure out the easiest way to fake out CPANTs regarding Acme::Code::Police's lack of strict.


lack of strict

itub on 2005-09-20T17:18:22

Wouldn't "use strict; no strict;" work? I don't know exactly how the test works, but I imagine it just looks for "use strict;" and assumes that if you turn it off later it's because you know what you are doing.

Re:lack of strict

Ovid on 2005-09-20T17:24:56

That's an nice thought. I assume it's just a naive regex against the source code. I'll have to double-check.

Re:lack of strict

runrig on 2005-09-20T19:12:35

I wonder if this would work: my $junk =

Re:lack of strict

runrig on 2005-09-20T19:15:00

If I previewed, that would've looked something like:
my $junk = <<EOT
use strict;
EOT

On using CPANTS as a real metric

runrig on 2005-09-20T19:24:54

I had some inside feedback about one of my interviews where they complained that I left the "blah, blah, blah" in the module. This for a module which is for all practical purposes useless, and for which I gave myself a one-star review (and which I occasionally think about removing). So who knows, someday that CPANTS rating (and the idiots that see it as a metric that should mean much of anything) may come back to haunt you.

Re:On using CPANTS as a real metric

markjugg on 2005-09-21T01:10:23

If the CPANTs rating marks a useless "blah blah blah" module as low quality, and that shows up in a job interview, I think the system is working.

Re:On using CPANTS as a real metric

runrig on 2005-09-21T06:26:22

If the CPANTs rating marks a useless "blah blah blah" module as low quality...

No, not low quality, it signifies low kwalitee. And even if the kwalitee is raised, the module would still be just as useless (and as far as I could tell, they didn't even read the review where I said that the module is useless, so don't expect much effort to be expended to release a version 2, though someday maybe I will, just for the halibut).

Re:On using CPANTS as a real metric

runrig on 2005-09-21T06:33:16

And to put it another way...(IMHO anyway) kwalitee is a game, which I may play just for the fun of it, but I'm not going to take it too seriously. Kind of like XP on PerlMonks.

Re:On using CPANTS as a real metric

cog on 2005-09-21T17:44:03

And yet, some people tend to think that XP on PerlMonks can give away whether you're a good or a bad Perl programmer...

Re:On using CPANTS as a real metric

runrig on 2005-09-21T18:18:35

When I say kwalitee is a game, I didn't know that Domm made it official :-) I also wanted to say that even though it's a game, it's not "just" a game, since it, e.g., made me look at a couple of modules (Test::Pod and Test::Pod::Coverage) that I probably wouldn't have looked at otherwise, so even games can be instructional.

It reminds me of the time when I called twelve tone music a game in front of a group of mostly musicians, and I received disdained looks and "No it's not!" responses. I didn't realize that in the concert that most of them had just returned from (which I missed), there was a performance of a twelve tone piece composed by one of the people present. Composing twelve tone music may make for an interesting and instructional excercise, but the best result you can hope to achieve can best be described as "tolerable" or "interesting" or "clever", not "beautiful", "moving" (unless you're talking about moving toward the exit), or "inspirational". But I didn't feel like arguing the point at the time :-(

Acme

luqui on 2005-09-21T01:26:43

I think a big attestment to the silliness of CPANTS is the fact that it doesn't omit Acme:: modules to begin with.

But seriously, CPAN is great because it is comprehensive. I really fear that if CPANTS gets popular, that it will destroy this ugly beauty of CPAN. "Oh, I don't want to release this module because it will reduce my CPANTS rating." Who the hell decides that the development practices that CPANTS tests are the good ones, and that they are applicable to every project? I guess that's why CPANTS isn't (and must never be) official.

Anyway, I've always felt that ratings pull apart collaborative communities, making them competitive. That's the last thing we want for CPAN.

So yeah, I don't think CPANTS's metric is particularly bad, I just think it's a bad idea to have a metric on community members at all.

</rant>