ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Gotta love that source code

July 22, 2008 8:50am

Subscribe [0]
  • #1 / Jul 22, 2008 8:50am

    Cro_Crx

    247 posts

    I was looking through the source of the CI website and noticed these

    <!—Candy comes in a wrapper—>
    <div id=“wrapperWit”>
    <!—Hard candy outer shell—>
    <!—Gooey center—>

    Gotta love a programmers sense of humor 😊

  • #2 / Jul 22, 2008 9:11am

    Pascal Kriete

    2589 posts

    The EE source is full of stuff like this.

    If so, we’ll celebrate wildly.

    Smite Our Enemies:  Advanced Conditionals

    ..in one giant loop o’ love

    Let us hear it for the preservation of array keys!

  • #3 / Jul 22, 2008 11:09am

    Bramme

    574 posts

    I personally love this one

    // If the target width/height match the source then it's pointless to crop, right?
    // So if dynamic output isn't on, then we'll return true so the user thinks
    // the process succeeded. It'll be our little secret…

    It’s in the image lib :p

  • #4 / Jul 22, 2008 12:48pm

    loathsome

    62 posts

    I always do this as well. Not only is it fun while doing it, it’s also fun returning to the code. A programmer’s humor is definitely the best one around! :D

  • #5 / Jul 22, 2008 10:36pm

    SpooF

    170 posts

    I do this in all the time in my code. Mainly to keep my self from going crazy. Its also really funny when you work in a team and from accost the room you hear someone bust out laughing. 😊

  • #6 / Jul 23, 2008 1:00am

    Cro_Crx

    247 posts

    Its also really funny when you work in a team and from accost the room you hear someone bust out laughing. 😊

    A team… ? I gotta get me one of those!

  • #7 / Jul 23, 2008 2:45am

    Colin Williams

    2601 posts

    Randy Casburn is the only guy I know who doesn’t do this. 😛

  • #8 / Jul 23, 2008 5:34pm

    Randy Casburn

    997 posts

    Comments?  In code?  What’s that?

    And then then combine with humor—you’ve got to be kidding!

    🧛 <- Randy late at night hehehaHAHA


    Ohhhh…Spoof said…

    ...Mainly to keep my self from going crazy….

    I get it then. It’s too late for me 🐛

  • #9 / Jul 23, 2008 5:44pm

    Derek Jones

    7561 posts

    ::makes note to self that the next serious code comment he writes will have an annotation::

    // The seriousness of this comment has been brought to you in part by Randy Casburn
  • #10 / Jul 24, 2008 6:15am

    Cro_Crx

    247 posts

    Derek, nice tutorials on the website, they were really helpful.

    Oh, BTW: Did you miss out the i in “id” on purpose? 😊

  • #11 / Jul 24, 2008 10:31am

    Derek Jones

    7561 posts

    Derek, nice tutorials on the website, they were really helpful.

    Oh, BTW: Did you miss out the i in “id” on purpose? 😊

    Er… what?

  • #12 / Jul 24, 2008 11:57am

    Cro_Crx

    247 posts

    On one of the tutorials, i can’t remember which one, you wrote d_something instead of id_something which broke the redirect.

  • #13 / Jul 24, 2008 12:14pm

    Derek Jones

    7561 posts

    I try to get audience interaction in my screencasts and it doesn’t get much more interactive than getting the viewer to yell at their screen at a bonehead mistake!  Honestly I have no memory if that was in the script or not.

  • #14 / Jul 24, 2008 5:20pm

    Scriptor

    51 posts

    I’ve always liked to put in the moment I figured something out in the comments. So you’ll get

    2:23 AM, SomeDate: It Workz!
  • #15 / Jul 25, 2008 3:29pm

    srobet

    53 posts

    Yups, humour sense. I love it. Some light in dark code.

    😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases