Fun With Google Code Search

By  on  

As programmers we've all had days that don't go well. You found out the hosting provider switched a setting that blows up a customer's website. That piece of code that you swore worked fine yesterdays in now causing you fits. Your coworker accidentally wrote over the code you just finished. We've all been there.

Whenever I'm having a case of the "Mondays," I venture over to Google Code Search. Oh, not to find code I need to speed up the development process. And not to find ideas for blog posts either. I do it for the same reason I bought a new Spanish dictionary every year in high school: to look up cuss words. Perverse yes, but damn fun too.

If you're having a bad day at work or need a break from a tough development issue, waste 10 minutes on Google Code Search and look up four letter words. Take comfort in knowing that thousands of developers have felt the way you do.

Some Favorite Code Comments

/* If you **** with this, update ret_from_syscall code too. */
/* should be treated as *read-only*.  If you change them, you could really **** things up. */
/* all this **** to get the font from Motif?! What the ****? */
/* **** the users, **** them up their stupid ***es */
/* This function doesn't actually check to make sure that 'prev' is in 'db'. You could really **** yourself over with this. */
// -1 == uh, you weren't snooping him, dumb***.
// -2 == stay the **** out.

What fun! And classy too!

Recent Features

  • By
    fetch API

    One of the worst kept secrets about AJAX on the web is that the underlying API for it, XMLHttpRequest, wasn't really made for what we've been using it for.  We've done well to create elegant APIs around XHR but we know we can do better.  Our effort to...

  • By
    Introducing MooTools Templated

    One major problem with creating UI components with the MooTools JavaScript framework is that there isn't a great way of allowing customization of template and ease of node creation. As of today, there are two ways of creating: new Element Madness The first way to create UI-driven...

Incredible Demos

  • By
    Sexy Album Art with MooTools or jQuery

    The way that album information displays is usually insanely boring. Music is supposed to be fun and moving, right? Luckily MooTools and jQuery allow us to communicate that creativity on the web. The XHTML A few structure DIVs and the album information. The CSS The CSS...

  • By
    MooTools dwCheckboxes Plugin

    Update / Fix: The checkboxes will no longer toggle when the "mouseup" event doesn't occur on a checkbox. Every morning I wake up to a bunch of emails in my Gmail inbox that I delete without reading. I end up clicking so many damn checkboxes...


  1. more funny Source Code Comments you can find at

  2. Andrew

    Umm they shut down that website

  3. S

    /* should be treated as *read-only*. If you change them, you could really **** things up. */

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!