• (cs)

    If their business is providing fake tans, they probably wouldn't get many black customers..

  • 2.068e+57 3.322e+43 (unregistered)

    Finally, a system that supports me and my family.

  • Bill (unregistered) in reply to Cbuttius
    Cbuttius:
    but if the consumer name isn't a number, how do you divide it by the number of accounts?
    Obviously you don't understand computers. Everything is a number.
  • Anonymous Genius (unregistered)

    Sounds like calling it a "design" is awfully generous...

  • (cs) in reply to 2.068e+57 3.322e+43
    2.068e+57 3.322e+43:
    Finally, a system that supports me and my family.
    umm... kinda funny... but, that would be a float, not a double.
  • duder (unregistered)

    You all are looking at this the wrong way. This is the winner of the SHA-3 competition.

  • My name is.... (unregistered)

    My name is 3.14159 and you killed my father. Prepare to die.

  • (cs) in reply to My name is....
    My name is....:
    My name is 3.14159 and you killed my father. Prepare to die.

    but I'm your NaN

  • duder (unregistered) in reply to Some Jerk
    Some Jerk:
    2.068e+57 3.322e+43:
    Finally, a system that supports me and my family.
    umm... kinda funny... but, that would be a float, not a double.

    Wrong. That is a double.

  • (cs) in reply to My name is....
    My name is....:
    My name is 3.14159 and you killed my father. Prepare to die.
    Correction... prepare to pi
  • null (unregistered) in reply to My name is....
    My name is....:
    My name is 3.14159 and you killed my father. Prepare to die.

    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.

  • (cs) in reply to My name is....
    My name is....:
    My name is 3.14159 and you killed my father. Prepare to die.
    Calm down. You're being irrational.
  • wyz (unregistered) in reply to Some Jerk
    Some Jerk:
    Actaully... I think that code sample was brilliant! I mean...

    ... 4. ... Strings take up too much space after all... and seriously... how many names and such can there be?
    ...

    Brilliant, a Foreign Key into the master Name and SSN table! A very normalized database to save repeating all those names in the person table.

    It will have to allow for initials, till the full name is known.

    This could really catch on as a new design pattern...

  • null (unregistered) in reply to Zylon
    Zylon:
    My name is....:
    My name is 3.14159 and you killed my father. Prepare to die.
    Calm down. You're being irrational.

    ...and transcendental.

  • Pi (unregistered) in reply to n9ds

    I take Pi

  • (cs) in reply to Andrew
    Andrew:
    Good evening, 2.0680885238724826912272548561731e+57 3.3224479973352664296547694221706e+43. How may I help you today?

    No sir, our system does not support black people.

    You win this thread.

  • Jay (unregistered) in reply to Peter
    Peter:
    I'm not white. In fact I've never met a white person. I'm actually kinda pink.

    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.

  • Anonymous Bob (unregistered) in reply to robert
    robert:
    I object. "White" is a degoratory and racist word. In future, address me as "Cacausian."

    In the spirit of hyphenated Americanism, I prefer, "European-American".

  • (cs)

    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...

  • (cs) in reply to Rachel
    Rachel:
    No need to go to so much trouble, guys. I'm right here. What do you want to know?

    Well, obviously, we want to know what your numbers are. And by "numbers" we don't mean SSN or phone.

  • Ur frits (unregistered) in reply to frits
    frits:
    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?

    Smart enough to know the difference between you're and your.

  • laughing (unregistered)

    Fantastic WTF. That submission deserves a prize.

  • (cs) in reply to Anonymous Bob
    Anonymous Bob:
    robert:
    I object. "White" is a degoratory and racist word. In future, address me as "Cacausian."

    In the spirit of hyphenated Americanism, I prefer, "European-American".

    I find all of these suggestions offensive.

    I prefer to be called a "person of pallor".

  • Mike Dimmick (unregistered) in reply to Peter
    Peter:
    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.

    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

    consumer
    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.

  • (cs) in reply to frits
    frits:
    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 bright, are you?

    FTFY

  • radarbob (unregistered) in reply to Nagesh
    Nagesh:
    Indian is asian also, idiot.
    so Indian is an Asian subclass as distinguished, by being idiots?
  • Jazz (unregistered) in reply to Caelan
    Caelan:
    WHITE POWER! WHITE POWER! WHITE POWER!

    Wind and solar are more environmentally-friendly, though!

  • Ken B. (unregistered) in reply to Bill
    Bill:
    ¯\(°_o)/¯ I DUNNO LOL:
    Nagesh is (... 0,0,1,1);
    An undocumented hispanic asian. You've achieved a remarkable level of data compression there sir!
    I guess you don't know him well enough to know that his full name is "Nagesh deJesus". And you've probably never met his cousin "Julio Koothrappali".
  • Ken B. (unregistered) in reply to Zylon
    Zylon:
    My name is....:
    My name is 3.14159 and you killed my father. Prepare to die.
    Calm down. You're being irrational.
    Get real.
  • (cs) in reply to Some Jerk
    Some Jerk:
    My name is....:
    My name is 3.14159 and you killed my father. Prepare to die.
    Correction... prepare to pi
    If you give me a squared radius, I can give you a wheel.

    Well we all assume the software covers dot-indians. What about feather-indians?

    Addendum (2012-08-29 15:32): [image]

  • foo (unregistered) in reply to duder
    duder:
    Some Jerk:
    2.068e+57 3.322e+43:
    Finally, a system that supports me and my family.
    umm... kinda funny... but, that would be a float, not a double.

    Wrong. That is a double.

    It's obviously a double float But since every float is a double, it's also a double double. Simple!

  • 2 (unregistered)

    The code is fine. It was written by my chief programmer, 13/37, in the Village.

  • foo (unregistered) in reply to wyz
    wyz:
    This could really catch on as a new design pattern...
    Just try it!

    (Get it? Try, catch, har har.)

  • foo (unregistered) in reply to Peter
    Peter:
    Darth Paul:
    robert:
    I object. "White" is a degoratory and racist word. In future, address me as "Cacausian."

    Not all caucasians are white.

    I'm not white. In fact I've never met a white person. I'm actually kinda pink.
    http://www.youtube.com/watch?v=n26iGdm354I (NSFW in certain countries ...)

  • The Man (unregistered) in reply to Mike Dimmick

    But the consumer array is a local variable.. its gets populated in the scope of the method and then nothing is done with it..

  • talentless_newbie (too lazy to log in) (unregistered) in reply to Ben Jammin
    Ben Jammin:
    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

    How did this not become a featured comment?

  • as (unregistered) in reply to Missed Opportunity
    Missed Opportunity:
    Sergei:
    Missed Opportunity:
    I really thought it was going to be:
    case white:
      ds.set_consumer_info(... 1,1,0,0);
    case hispanic:
      ds.set_consumer_info(... 1,0,1,0);
    case asian:
      ds.set_consumer_info(... 1,0,0,1);
    case indian:
      throw new error ("Nagesh!");
    

    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.

    EDIT: This post is Copyright (C) 2012. Permission to read is denied for anyone in Bolivia.
    Don't worry - they can't anyway....

  • Plasma donkey (unregistered) in reply to Mike Dimmick

    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'.

  • Jim (unregistered) in reply to frg567
    frg567:
    Nagesh:
    Indian is asian also, idiot.

    Indians from India - no, they are not. They belong to the White/Caucasian race.

    Didn't the whole world descend from Africans of some description? Some of us are just a touch albino....

  • Dr Frink (unregistered) in reply to Peter
    Peter:
    Darth Paul:
    robert:
    I object. "White" is a degoratory and racist word. In future, address me as "Cacausian."

    Not all caucasians are white.

    I'm not white. In fact I've never met a white person. I'm actually kinda pink.
    There was one in The Da Vinci Code

  • JJ (unregistered) in reply to Peter
    Peter:
    Darth Paul:
    robert:
    I object. "White" is a degoratory and racist word. In future, address me as "Cacausian."

    Not all caucasians are white.

    I'm not white. In fact I've never met a white person. I'm actually kinda pink.
    Funny that people say pink. I've always been pretty pale, and I remember that the color in my box of Crayola 64s that was closest to my skin color was peach, not pink. (Unless I was really cold.)

  • Disappointed (unregistered)

    I was expecting all the doubles to store pointers to some stack based memory that was going missing anyway....

  • another jerk (unregistered) in reply to Mike Dimmick

    agreed.. however i think "demographics" might be an even more accurate moniker

  • another jerk (unregistered) in reply to Mike Dimmick

    agreed.. however i think "demographics" might be an even more accurate moniker

  • (cs) in reply to Peter
    Peter:
    I'm not white. In fact I've never met a white person. I'm actually kinda pink.
    [image]
  • (cs)
    robert:
    I object. "White" is a degoratory and racist word. In future, address me as "Cacausian."
    But only at a political cucaus, eh?
    da Doctah:
    I find all of these suggestions offensive.

    I prefer to be called a "person of pallor".

    +1

  • Luiz Felipe (unregistered) in reply to Andrew
    Andrew:
    Good evening, 2.0680885238724826912272548561731e+57 3.3224479973352664296547694221706e+43. How may I help you today?

    No sir, our system does not support black people.

    Of course the system supports black people. doubles have signal. black people will just be ds.set_consumer_info(... -1,-1,-1,-1);

  • (cs) in reply to Jim
    Jim:
    Didn't the whole world descend from Africans of some description? Some of us are just a touch albino....
    "If any of you are still white, we can cure you."
  • (cs) in reply to n9ds
    n9ds:
    mott555:
    We need to all change our names to numeric values. It'll prepare us for Borg assimilation.

    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: "

    The correct form of address is "No. Forty Two".

  • BitDreamer (unregistered)
    I'm not white. In fact I've never met a white person. I'm actually kinda pink.
    Zemm:
    (funny picture)
    DAM, Zemm beat me to it, but here I go anyway... I've had some white relatives, and they looked so nice laying there... not moving ... ever again.

    ...

    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.

    ...

    Finally, a system that supports me and my family.
    umm... kinda funny... but, that would be a float, not a double.
    Wrong. That is a double.
    I think he meant something like "float a loan". Not a good way to support a family.

    ...

    The Man:
    But the consumer array is a local variable.. its gets populated in the scope of the method and then nothing is done with it..
    this.consumer = new double[6];
    consumer must be an attribute declared for the object type used to create the object 'ds'. It is not a local variable.

    ...

    Luiz Felipe:
    Of course the system supports black people. doubles have signal. black people will just be ds.set_consumer_info(... -1,-1,-1,-1);
    Support for black, or any non 'white' people, could be added, but as coded,
    this system does not support black people.

Leave a comment on “The Race Case”

Log In or post as a guest

Replying to comment #:

« Return to Article