Christopher Wellons
mosquitopsu@gmail.com
Public GPG Key
Post Index - see a list of all of the entries.
I am a computer engineer working at the Johns Hopkins University Applied Physics Laboratory. I love computers and free software.
Most of the topics you will find here are about hobby computing and programming with free software (and a few exceptions).
E-mail me: mosquitopsu@gmail.com
Projects:
- Brainfuck Compiler
- PNG Archiver
- BINI Tools
-
Parallel Mandelbrot Generator
Archives:
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
June 2008
July 2008
August 2008
September 2008
At work I am currently maintaining/adding features to a rather large piece of software. It takes over two hours just to build (but this is mostly because C++ takes a long time to compile, being the ugly mess C++ is). I wondered if there would be any, let's say "interesting", comments in there. With all that code there had to be something! I ran this to find out,
find . -name "*.[chCH]" -exec grep \
'damn\|fuck\|shit\|kludge\|dragon\|idiot\|stupid\|hell' \
{} -Hi \;
And I found maybe a hundred matches. A couple of us got some good laughs for awhile reading some very creative comments and, in a few cases, strings for debugging log output. If you want some code to run this on yourself this 2.4.1 release of Pidgin works fairly well. This is my favorite comment, which is followed by a piece of code handling just what it is talking about,
/* holy crap. who the fuck would transfer gigabytes through AIM?! */
For an easier way to search a whole lot of code, someone has already compiled some interesting Google Code Search searches that have interesting results. My favorite is probably this one.
Have fun!
Don't stop here! This isn't everything. Check out the archives (on the left) for more posts. Or just have a look at the index.