Netcat.c
83 points| metamusic | 10 years ago |opensource.apple.com | reply
1. Take a look at 'gethostpoop' 2. Take a look at 'getportpoop' 3. Make sure to read the netdb.h rant in the function above. 4. #ifdef GAPING_SECURITY_HOLE
Nearly half the comments in the file are taking the piss out of BSD sockets. Enjoy!
[+] [-] astrodust|10 years ago|reply
It's also from 1995.
[+] [-] kjak|10 years ago|reply
[+] [-] FullyFunctional|10 years ago|reply
[+] [-] mct|10 years ago|reply
http://sysunconfig.net/unixtips/netcat_readme.html
[+] [-] foxhill|10 years ago|reply
comments are no replacement for readable and concise code, i tried to read this from start to finish - but i don't know where one block ends and the next begins.
what the fuck does the variable "pr00gie" contain? yea the comments are half a laugh (as far as 90s "micro$haft" humour goes), but the code that it shamelessly decorates is fucking horrific.
so, not only is this by definition entirely superfluous, but the identifiers used are fucking meaningless. if all you see is "cc -DANAL" what the fuck does that mean? ok, so obviously means picky, but in what regard? how the fuck do you know it's got anything to do with domain names?why not something like;
or even better (and get rid of #ifdefs in function code), have this up at the top with the rest of the programmer humour? no wonder computers fucking suck, we're not standing on the shoulders of giants, rather the top of an everest-sized mountain of technical debt and hacks. this should not be celebrated.[+] [-] ackalker|10 years ago|reply
[+] [-] blubbi2|10 years ago|reply
/* If your shitbox doesn't have getopt, step into the nineties already. */
[+] [-] timothybone|10 years ago|reply
[+] [-] yxhuvud|10 years ago|reply
[+] [-] angersock|10 years ago|reply
However, the pervasive wtf undercurrent here in the comments actually makes it colorful yet oddly not too distracting. I like it.
[+] [-] nathancahill|10 years ago|reply
[+] [-] fish2000|10 years ago|reply
[+] [-] rb12345|10 years ago|reply
[+] [-] metamusic|10 years ago|reply
[+] [-] chjj|10 years ago|reply
[+] [-] pathikrit|10 years ago|reply