- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
If their business is providing fake tans, they probably wouldn't get many black customers..
Admin
Finally, a system that supports me and my family.
Admin
Admin
Sounds like calling it a "design" is awfully generous...
Admin
Admin
You all are looking at this the wrong way. This is the winner of the SHA-3 competition.
Admin
My name is 3.14159 and you killed my father. Prepare to die.
Admin
but I'm your NaN
Admin
Wrong. That is a double.
Admin
Admin
You wouldn't happen to have 6.0133 fingers on your right hand?
In case you are wondering, yes I always begin conversations this way.
Admin
Admin
It will have to allow for initials, till the full name is known.
This could really catch on as a new design pattern...
Admin
...and transcendental.
Admin
I take Pi
Admin
Admin
Try someone from Japan or Korea, even China. I'm a pasty white-boy, and they're whiter than me.
I see the WTF now. At first I thought the idea of being able to accurately describe your heritage as @Race Driver said was brillant, but now I see the implementation is flawed.
If I get a tan, does my White% decrease?
And Asian isn't a colour, you fools.
Is Double enough precision?
WTF indeed.
Admin
In the spirit of hyphenated Americanism, I prefer, "European-American".
Admin
Probably started with a very sketchy design from a noobie.
Then the (somehow) more experienced boss took a look and said "We need more attributes! Double all the attributes!"
The noobie literally followed the spec...
Admin
Well, obviously, we want to know what your numbers are. And by "numbers" we don't mean SSN or phone.
Admin
Admin
Fantastic WTF. That submission deserves a prize.
Admin
I prefer to be called a "person of pallor".
Admin
Indeed. Even the naming of the arguments is not really a problem - you evaluate the names of the arguments in the context of the method name and of the class. The problem is that the method name doesn't give that context: it should be something like set_account_fractions. DataSet sounds like it's a behemoth containing all data about the system and should probably be broken into smaller classes. I don't have enough information to comment on whether the
array should be turned into a structure or class; maybe there's some serialization going on that requires it to be an array, such as if this were a wrapper class over serialization as the name suggests.Admin
Admin
Admin
Wind and solar are more environmentally-friendly, though!
Admin
Admin
Admin
Well we all assume the software covers dot-indians. What about feather-indians?
Addendum (2012-08-29 15:32): [image]
Admin
Admin
The code is fine. It was written by my chief programmer, 13/37, in the Village.
Admin
(Get it? Try, catch, har har.)
Admin
Admin
But the consumer array is a local variable.. its gets populated in the scope of the method and then nothing is done with it..
Admin
How did this not become a featured comment?
Admin
Admin
I'm pretty sure that the 'st' variable used there is shorthand for 'statistics'.
The real WTF here is that it is very likely using integer division, and the result is about the same as capthca: nulla, translated from some languages 'zero'.
Admin
Admin
Admin
Admin
I was expecting all the doubles to store pointers to some stack based memory that was going missing anyway....
Admin
agreed.. however i think "demographics" might be an even more accurate moniker
Admin
agreed.. however i think "demographics" might be an even more accurate moniker
Admin
Admin
Admin
Of course the system supports black people. doubles have signal. black people will just be ds.set_consumer_info(... -1,-1,-1,-1);
Admin
Admin
Admin
...
I'm pretty sure Rachel would have pointed out if this was statistical coding....
Nobody has pointed out ... The method parameters are called firstname and lastname, but it's being passed variables called ConsumerName and CosignerName. Regardless of statistics or not, this alone qualifies as a WTF.
...
I think he meant something like "float a loan". Not a good way to support a family....
consumer must be an attribute declared for the object type used to create the object 'ds'. It is not a local variable....
Support for black, or any non 'white' people, could be added, but as coded,