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
    5 Awesome New Mozilla Technologies You’ve Never Heard Of

    My trip to Mozilla Summit 2013 was incredible.  I've spent so much time focusing on my project that I had lost sight of all of the great work Mozillians were putting out.  MozSummit provided the perfect reminder of how brilliant my colleagues are and how much...

  • By
    Designing for Simplicity

    Before we get started, it's worth me spending a brief moment introducing myself to you. My name is Mark (or @integralist if Twitter happens to be your communication tool of choice) and I currently work for BBC News in London England as a principal engineer/tech...

Incredible Demos

  • By
    CSS Ellipsis Beginning of String

    I was incredibly happy when CSS text-overflow: ellipsis (married with fixed width and overflow: hidden was introduced to the CSS spec and browsers; the feature allowed us to stop trying to marry JavaScript width calculation with string width calculation and truncation.  CSS ellipsis was also very friendly to...

  • By
    Sliding Labels Using MooTools

    A week back I saw a great effect created by CSSKarma: input labels being animated horizontally. The idea is everything positive: elegant, practical, unobtrusive, and requires very little jQuery code. Luckily the effect doesn't require much MooTools code either! The HTML A...

Discussion

  1. more funny Source Code Comments you can find at http://www.codecandies.com

  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!