Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. The Daily WTF

The Daily WTF

Scheduled Pinned Locked Moved The Lounge
comlearning
8 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    David Wulff
    wrote on last edited by
    #1

    I normaly wouldn't post plugs for individual items on The Daily WTF blog, assuming most people that would be interested in them would have found them by now, but today I'm going to make an exception. This is just 'wow'[^] The Responsible Guy is just so deviously clever that is is almost brilliant. I'd take my hat off to him if I was wearing one. In fact I might just put one so I can take it off. Of course, WhosYourDaddy(node) is pretty funny too, given its actual purpose.


    Ðavid Wulff The Royal Woofle Museum
    Audioscrobbler :: flikr

    Die Freiheit spielt auf allen Geigen

    A B 2 Replies Last reply
    0
    • D David Wulff

      I normaly wouldn't post plugs for individual items on The Daily WTF blog, assuming most people that would be interested in them would have found them by now, but today I'm going to make an exception. This is just 'wow'[^] The Responsible Guy is just so deviously clever that is is almost brilliant. I'd take my hat off to him if I was wearing one. In fact I might just put one so I can take it off. Of course, WhosYourDaddy(node) is pretty funny too, given its actual purpose.


      Ðavid Wulff The Royal Woofle Museum
      Audioscrobbler :: flikr

      Die Freiheit spielt auf allen Geigen

      A Offline
      A Offline
      Aqualic
      wrote on last edited by
      #2

      why can't use WhosYourMama(node)?

      1 Reply Last reply
      0
      • D David Wulff

        I normaly wouldn't post plugs for individual items on The Daily WTF blog, assuming most people that would be interested in them would have found them by now, but today I'm going to make an exception. This is just 'wow'[^] The Responsible Guy is just so deviously clever that is is almost brilliant. I'd take my hat off to him if I was wearing one. In fact I might just put one so I can take it off. Of course, WhosYourDaddy(node) is pretty funny too, given its actual purpose.


        Ðavid Wulff The Royal Woofle Museum
        Audioscrobbler :: flikr

        Die Freiheit spielt auf allen Geigen

        B Offline
        B Offline
        Bernhard
        wrote on last edited by
        #3

        I really like the Daily WTF.. but i can't stand the people in the discussion forum. Hybris and laziness are the virtue of a programmer.. They just concentrate on part 1..


        All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects."
        Roger Wright
        http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx

        V D 2 Replies Last reply
        0
        • B Bernhard

          I really like the Daily WTF.. but i can't stand the people in the discussion forum. Hybris and laziness are the virtue of a programmer.. They just concentrate on part 1..


          All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects."
          Roger Wright
          http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx

          V Offline
          V Offline
          V 0
          wrote on last edited by
          #4

          Bernhard wrote: but i can't stand the people in the discussion forum There:doh: -> They're not as nice than those on CP, except for one, that's true. :-D No hurries, no worries.

          1 Reply Last reply
          0
          • B Bernhard

            I really like the Daily WTF.. but i can't stand the people in the discussion forum. Hybris and laziness are the virtue of a programmer.. They just concentrate on part 1..


            All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects."
            Roger Wright
            http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx

            D Offline
            D Offline
            David Wulff
            wrote on last edited by
            #5

            Bernhard wrote: but i can't stand the people in the discussion forum I think some of the best WTFs come from the discussion forum. :)


            Ðavid Wulff The Royal Woofle Museum
            Audioscrobbler :: flikr

            Die Freiheit spielt auf allen Geigen

            B B 2 Replies Last reply
            0
            • D David Wulff

              Bernhard wrote: but i can't stand the people in the discussion forum I think some of the best WTFs come from the discussion forum. :)


              Ðavid Wulff The Royal Woofle Museum
              Audioscrobbler :: flikr

              Die Freiheit spielt auf allen Geigen

              B Offline
              B Offline
              Blake Miller
              wrote on last edited by
              #6

              Some of my personal favorites come directly from our production code. Don't try this at home, kids... BOOL isEmpty(char *string) { int i = 0; for(i = 0;string[i] != '\0';i++) ; if(i > 0)return FALSE; return TRUE; } :wtf: This code CLEARLY demonstrates a profound lack of knowledge about what it means for a string to be empty. But wait, there's more... :doh: How many trips through the string CAN we make... void LTrim(LPSTR sourceName) { int slen,sctr; LPSTR sptr = NULL; slen = 0; slen = strlen(sourceName); if(!slen)return; for(sptr = sourceName;*sptr != '\0' && *sptr == ' ';sptr++); slen = strlen(sptr); for(sctr = 0;*sptr != '\0';sptr++,sctr++) { sourceName[sctr] = *sptr; } sourceName[sctr] = '\0'; } :omg: And one last one, though admittedly not as bad as the first two... void RTrim(LPSTR sourceName) { int slen = 0; slen = strlen(sourceName); if(!slen)return; for(slen--;sourceName[slen] > 0 && sourceName[slen] == ' ';slen--); slen++; sourceName[slen] = '\0'; }

              J 1 Reply Last reply
              0
              • B Blake Miller

                Some of my personal favorites come directly from our production code. Don't try this at home, kids... BOOL isEmpty(char *string) { int i = 0; for(i = 0;string[i] != '\0';i++) ; if(i > 0)return FALSE; return TRUE; } :wtf: This code CLEARLY demonstrates a profound lack of knowledge about what it means for a string to be empty. But wait, there's more... :doh: How many trips through the string CAN we make... void LTrim(LPSTR sourceName) { int slen,sctr; LPSTR sptr = NULL; slen = 0; slen = strlen(sourceName); if(!slen)return; for(sptr = sourceName;*sptr != '\0' && *sptr == ' ';sptr++); slen = strlen(sptr); for(sctr = 0;*sptr != '\0';sptr++,sctr++) { sourceName[sctr] = *sptr; } sourceName[sctr] = '\0'; } :omg: And one last one, though admittedly not as bad as the first two... void RTrim(LPSTR sourceName) { int slen = 0; slen = strlen(sourceName); if(!slen)return; for(slen--;sourceName[slen] > 0 && sourceName[slen] == ' ';slen--); slen++; sourceName[slen] = '\0'; }

                J Offline
                J Offline
                Jorgen Sigvardsson
                wrote on last edited by
                #7

                :wtf: Why is the programmer(s) who wrote this still alive? :rolleyes: -- Oneigaishimasu! I blog too now[^]

                1 Reply Last reply
                0
                • D David Wulff

                  Bernhard wrote: but i can't stand the people in the discussion forum I think some of the best WTFs come from the discussion forum. :)


                  Ðavid Wulff The Royal Woofle Museum
                  Audioscrobbler :: flikr

                  Die Freiheit spielt auf allen Geigen

                  B Offline
                  B Offline
                  Bernhard
                  wrote on last edited by
                  #8

                  Maybe the guys in the discussion forum are the WTF..


                  All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects."
                  Roger Wright
                  http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups