People reacted approvingly to tote, the nicest piece of vaporware I've never written. I received an interesting email pointing out that research on this goes back to "50s and 60s as part of the psychological movement of behaviourism"; my post was featured on reddit, and there were some mentions on IRC. All of this makes for a nice data point on how much attention you can make people pay something that isn't written yet. I don't think it's likely that tote, even if it turns out to be a nice harness, will ever get that kind of attention again. ☺
Speaking of capturing people's attention, I tend to make it a habit of including something bolded in the second paragraph, sort of my take-home message. I don't really have such a message today, except perhaps to say that in the past few weeks, I've tried tote, and it works. I've already spent hours in it, playing it like a game. Unfortunately, the versions I used are too hard-coded to the two projects I tried them on, so I still need to write the real thing from scratch. But I've learned some new things along the way, which I thought I'd relay here, partly for my future self, and partly for any readers interested in the (imminent) development of tote.
sub compare_passes {
my ($new, $old) = @_;
return -1 if length $new < length $old;
my ($regression, $progression) = 0, 0;
for my $i (0..length $old) {
my ($n, $o) = map { substr($_, $i, 1) }, $new, $old;
if ($n < $o) {
$regression = 1;
}
elsif ($n > $o) {
$progression = 1;
}
}
return $progression - $regression;
}
sub compare_passes {
my ($new, $old) = @_;
my ($passing_new_tests, $passing_old_tests)
= map {
return $passing_new_tests <=> $passing_old_tests;
}
Each time I mention tote, I want it a little bit more.
Some thoughts on tote 0 Comments More | Login | Reply /