The Daily WTF
-
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 :: flikrDie Freiheit spielt auf allen Geigen
-
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 :: flikrDie Freiheit spielt auf allen Geigen
-
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 :: flikrDie Freiheit spielt auf allen Geigen
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 -
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 -
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#xx965687xxBernhard 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 :: flikrDie Freiheit spielt auf allen Geigen
-
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 :: flikrDie Freiheit spielt auf allen Geigen
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'; }
-
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'; }
:wtf: Why is the programmer(s) who wrote this still alive? :rolleyes: -- Oneigaishimasu! I blog too now[^]
-
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 :: flikrDie Freiheit spielt auf allen Geigen
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