On Wed, 11 Dec 2002, Lusercop wrote:

> On Wed, Dec 11, 2002 at 12:06:10PM +0000, Steve Campbell wrote:
> > (1) If anyone tells you that their code isn't commented because "if you 
> > don't understand it you shouldn't be touching it", please kill them.
> 
> procmail-3.22/src/sublib.c has this to say:
> | /*
> |  *      My personal strstr() implementation that beats most other algorithms.
> |  *      Until someone tells me otherwise, I assume that this is the
> |  *      fastest implementation of strstr() in C.
> |  *      I deliberately chose not to comment it.  You should have at least
> |  *      as much fun trying to understand it, as I had to write it :-).
> |  */
> 
> I'll re-iterate FANF's comment on this: Wanker.

Surely appropriate comments are to be found in Knuth, modulo instruction 
bumming.

S.

-- 
Shevek
I am the Borg.

sub AUTOLOAD{my$i=$AUTOLOAD;my$x=shift;$i=~s/^.*://;print"$x\n";eval
qq{*$AUTOLOAD=sub{my\$x=shift;return unless \$x%$i;&{$x}(\$x);};};}

foreach my $i (3..65535) { &{'2'}($i); }


Reply via email to