InsideGoogle

part of the Blog News Channel

YouTube Leaves In Embarrassing Debug Comments

Chad Upton discovered some comments left in YouTube’s Flash video player that don’t exactly come off as professional. They include:

  • we got meta fuck yeah!
  • showing the goddamn play button
  • The connection just got tea bagged - reset and reload
  • Fuck bandwidth detection script its taking too long or not working so fuck it hard
  • Flash is affecting badly the performance of the ****.com website
  • This feature does not work and crashes the player fix laterz
  • HACK HACK HACK HACK HACK this scuks

Probably just something Chad Hurley and Steve Chen left in there many months ago, when only three guys were using YouTube (although there are indications in the comments that it may have only been added recently), but it doesn’t look so good when dragged out for display in the town square. Chad explains the real stupidity:

When you publish your Flash Application for production, you should “omit trace actions” in the publish settings. That way, debug statements will be excluded entirely and you won’t be forcing the end user to download your shitty debug statements that they don’t need and will probably never see.

Yeah, you’re supposed to strip that stuff out. It saves money on bandwidth, avoids posts like this one, and is just good coding practice. I’d never make a mistake like that.

* - don’t 4get to buy cream for that itch we don’t talk about
(via Digg)

UPDATE: Apparently only the first two lines are actually in the YouTube code, the others are past examples. Chad’s post was worded in a way that I didn’t notice the distinction.

June 13th, 2007 Posted by Nathan Weinberg | YouTube, Services, General | 6 comments



Hosting sponsored by GoDaddy

6 Comments »

  1. Hey didn’t you force me to download some commented-out php in the html on this very page?

    It’s funny, but I wouldn’t get too crazy about bagging somebody about some comments you have to decompile a file to read. It looks like they’re getting by OK.

    Comment by Don | June 14, 2007

  2. From the way Chad words it, it seems as if only the first two comments were in the YouTube player code. He says, “These are some example debug statements I have lifted from real code that should not have been there:” That implies the rest are from other code he has come across in other places.

    Comment by Dylan Bennett | June 14, 2007

  3. Only the first two lines are from the YouTube player, apparently.

    http://blog.outer-court.com/forum/99110.html

    Comment by Philipp Lenssen | June 14, 2007

  4. I don’t have billion dollar bandwidth bills. I am nowhere near my bandwidth cap. Meanwhile, Google supposedly saves a good amount of money with every character they remove from their homepage code, so you’d think they’d make an effort.

    Plus, the real point is the comments are embarrassing. My comments don’t include

    * - don’t forget to poop

    Comment by Nathan Weinberg | June 14, 2007

  5. […] [通过 Barry -> InsideGoogle.] […]

    Pingback by 谷歌治印 Google Blogoscoped 中文版 » YouTube播放器源代码的诅咒 | July 5, 2007

  6. […] [Via Barry -> InsideGoogle.] […]

    Pingback by Mans Bags Manbag Menbags Men Bags Man Bag Handbags for men » Blog Archive » Cursing in YouTube Player Source Code | July 29, 2007

Leave a comment