Hobbit's original netcat code...
Around 1995 Hobbit wrote "netcat", a useful little telnet/web-broswer substitute. It contained delightful comments, including this:
/* I really want to strangle the twit who dreamed up all these sockaddr and
hostent abstractions, and then forced them all to be incompatible with
each other so you *HAVE* to do all this ridiculous casting back and forth.
If that wasn't bad enough, all the doc insists on referring to local ports
and addresses as "names", which makes NO sense down at the bare metal.
What an absolutely horrid paradigm, and to think of all the people who
have been wasting significant amounts of time fighting with this stupid
deliberate obfuscation over the last 10 years... then again, I like
languages wherein a pointer is a pointer, what you put there is your own
business, the compiler stays out of your face, and sheep are nervous.
Maybe that's why my C code reads like assembler half the time... */
.
.
.
Then there's this little gem:
/* some systems, notably linux, crap into their select timers on return, so
we create a expendable copy and give *that* to select. *Fuck* me ... */
if (timer1)
memcpy (timer2, timer1, sizeof (struct timeval));
rr = select (16, ding2, 0, 0, timer2); /* here it is, kiddies */
if (rr < 0) {
if (errno != EINTR) { /* might have gotten ^Zed, etc ?*/
holler ("select fuxored");
close (fd);
return (1);
}
} /* select fuckup */