- 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
This doesn't return an error like 'too many attributes' why?
Admin
I once had a double asian. Twins are fun!
Admin
I certainly hope st doesn't mean string
Admin
Alex, can I have permission to include today's code in my new book, 50 Shades of Fail? It would pretty much save me from having to find 49 more.
Admin
WHITE POWER! WHITE POWER! WHITE POWER!
Admin
OK, this is the first code I've ever seen that has a chance of accurately representing race. You could be 60% white, 30% asian, and 10% hispanic!
Admin
Good evening, 2.0680885238724826912272548561731e+57 3.3224479973352664296547694221706e+43. How may I help you today?
No sir, our system does not support black people.
Admin
This codes discriminate me! Not review by India quality control teem. I go market sidewalk, buy life chicken, sacrifice to curse developers.
Admin
At least there's plenty of room for expansion of the number of digits in the SSN.
Admin
I just tried to figure that out. Nice code challenge.
Admin
Storing stuff in doubles instead of strings. Finally someone did it right!
Admin
Wow! And I thought our code was bad!
Admin
I object. "White" is a degoratory and racist word. In future, address me as "Cacausian."
Admin
Indian is asian also, idiot.
Admin
Oh, and very carefully so as not to frighten her and get arrested again. They say the penalties are tougher the third time.
Admin
Considering the nature of this site, I wouldn't be surprised if Rachel was a man.
Admin
I'm pretty sure that you could get into a lawsuit if you start basing loans on whether someone is black or not.
Your not too smart, are you?
Admin
What this code really needs is a race condition to check if the customer is white before setting it.
Admin
No need to go to so much trouble, guys. I'm right here. What do you want to know?
Admin
Could a negative value on white indicate a black person? Or is that when multiple race values are filled in, eg like an mixture.. Anyway, this is a nice WTF
Admin
"Don't allow software that treats your customers like just a number. Our software treats 'em like six, huge, massive numbers!"
Admin
I really thought it was going to be:
Admin
We need to all change our names to numeric values. It'll prepare us for Borg assimilation.
Admin
Errrr....
(Dammit, where's my beer!)
Admin
"The naming convention is inconsistent", it says. So why are you all assuming that this has anything to do with personal data? It could easily be storing the lengths of the sides of some triangles, converted from centimetres to inches ("st.NumberOfAccounts" = 2.54), for example.
Admin
It's pretty clear that the intent of this code is not what one might think at first. It is poorly described, but it must (surely) be to do some analysis on all consumers in the database. The values are recording what percentage of accounts have first name set, what percentage have SSN, what percentage are asian etc. It's still pretty poor, but I don't believe that it's as moronic as it has been presented.
Admin
The Law Against Racism and All Forms of Discrimination (Spanish: Ley 045 Contra el Racismo y Toda Forma de Discriminación; often called the Law Against Racism) is a statute passed by the Plurinational Legislative Assembly of Bolivia as Law 045 and promulgated by President Evo Morales into law as Law 737/2010 on 10 October 2010.[1] The law prohibits discrimination and discriminatory aggression by public and private institutions and individuals, creates a governmental Committee Against Racism and All Forms of Discrimination, and bars the dissemination of racist and discriminatory ideas through the mass media. The provisions of the law applying to the media caused extensive controversy and were opposed by mainstream publications and media worker associations.
Admin
Admin
Awesome!
Admin
Admin
If names are hashed as numbers, we run into a problem with roundoff errors.
If person A is 1.23456 and person B is 1.23457, what happens if a calculation gives: 1.234565? Must they merge, mate and reproduce to generate the person representing that value?
Admin
waitwhat? If I'm reading that right, EVERYONE is white?? I'd love to see the original design documents (assuming there are any) which decided a person's race should be stored are separate doubles. Then the update which made Indian redundant. Then the update which decided everyone was white.
Admin
Admin
Yes, but how many hispanics are there in Hispaniola? Do they really deserve an entire category all to themselves?
And what about Pacific Islanders. You've got to be able to count the Aussies and Kiwis.
And the Blacks. You'd not want to mistake them for real South Africans.
Admin
Bogus. "st" stands for statistic. ConsumerName is the number of names...
Same for the other fields, they want to have some %.
Now, If I could understand the first part, that would be enormous.
Admin
Indians from India - no, they are not. They belong to the White/Caucasian race.
Admin
My bad, 2!!
They are using double to store the index key, and it must be limited to 0-1 range, otherwise they might encounter a precision issue...
a true WTF
Admin
Admin
Admin
How the What the HUH?
Admin
Actually, Indians are caucasian, by definition.
Admin
Not all caucasians are white.
Admin
but if the consumer name isn't a number, how do you divide it by the number of accounts?
Admin
I seem to recall a court case in Minnesota where a guy tried to do exactly that (change his name to a number, not get assimilated.) The court ruled that he could, but he had to spell it out. "Dear Mr. Forty Two: "
Admin
Actaully... I think that code sample was brilliant! I mean...
And the final... most brilliant manuever in this entire code set! Hard coding everyone as white... so that everyone gets treated equally.
Admin
Just like all your colors on the monitor are RGB numbers, your race can be calculated in HAI (hispanic, asian, indian). The white scale is just your transparency.
1,0,0,0 is a white person 0,1,1,1 is a black ghost
Admin
And India was part of Asia last time I looked at the map.
By the way where does it say you can't be black African/American/European in there? Just have all those fields zero (I presume).
Admin
0,1,1,1 is a black indian hispanic. All Indians are Asians but not all Asians are Indians.
Admin
In this context, maybe "indian" should have been "native american" or just simply "native"?
Assuming that someone who wrote this is able to distinguish between the two is giving an awful lot of credit where it ain't due....
Admin