- 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
Admin
Captcha: pecus... Reminds me of my dear friend in Rome, Pecus Decus.
Admin
Oooo...code by an old FORTRAN programmer.
A double is 8 bytes, which is long enough for many names. A common trick in early FORTRAN was to pass such values in numeric variables, rather than in character arrays, because they were so easily read and written (because a numeric variable contained multiple bytes; 8 for double precision):
Oh, and just in case you think I'm making this up: Try to follow around the original ADVENTURE program a little.
Admin
Hey, it's a great way to properly represent the mixture.
If one of your parents is Asian and the other is Black, you'd be 0.5 black and 0.5 asian. See? The database works great!
Now if you married a white, your kids would be 0.25 black, 0.25 asian and 0.5 white.
Storing in doubles makes perfect sense - you can accurately determine what race someone is, including mixed-race families. And accurately store the proportions, too. (And given the way binary floats work, it should be good for many generations)
Admin
"For security purposes, please say the last four digits of your social security number"
"2051.99999999999"
Admin
I suppose it's quite possible. I'd like to see someone who fits that bill though and ask how their family tree is... Genetics are base2. So going one level up - parents - you can have 50% of each. Assuming parents and grandparents can only have 100% of one, you could be at max, 50% white, 50% asian. Going back further, you have 4 grandparents, each potentially 100%, you could have 50% white, 25% asian, 25% hispanic, that's assuming that each person gets 50% of their genetics from both parents. It's usually closer to 49.9%... Going up one more level, great grand parents, you'd have 16, so now you can have 10 of them be White, 5 asian, and 1 hispanic, which would get you 62.5% white, 31.25% asian, 6.25% hispanic. So, I suppose you could round it up a bit on the hispanic side, round white and asian down a bit, and you got yourself the mythical 60 30 10.
In any case, I doubt anyone is going to trace their family history back so far enough to be able to tell with any scientific certainty which percentages of ethnicity their ancestors were. And how would you count people such as Tajiks who may be Mid-Eastern or Asian depending on where you consider them to be. Perhaps you could consider them as 50% asian, but then you have people in your database who don't add up to 100% of a person.
Admin
TRWTF was that the command PLOVER would send you from the Plover room to Y2. From any other room next to Y2, the command Y2 would move you to Y2. In a few other places you could also name the room you wanted to move to, if it was adjacent to your present location. The command Y2 should have worked from the Plover room. The reason Plugh was spoken by a hollow voice instead of being engraved in stone was so that it would be a hint, if you came from the Plover room then you'd know you were at Y2. If you were at Y2 then the PLOVER command worked correctly. So I think the use of the PLOVER command instead of Y2 command to move from the Plover room to Y2 was a typo by some programmer, unfairly causing injury and game losses to millions of innocent adventurers.
Admin
This reminds me of the method for finding the average Joe: you all them all up and divide by the number of Joes.
Admin
Admin
In that case, the WTF here, is that, based on that call statement, everyone is assumed White... eff the data.
Captcha: tego (of my eggo)?
Admin
I don't think you people realize the genius behind this!
They are using white, hispanic, asian, and indian similar to RGBA values but only for PEOPLE!
So while I might be a 1.0, 0.0, 0.0, 0.0
My buddy a few desks over can be described as a 0.4, 0.25, 0.25, 0.1
But watch out for the 0.5, 0.5, 0.5, 0.5 guys!!!
Admin
I've used this very trick to sign friends birthday cards before. Divide the chunks of the message into, for example, 64-bit integers (8 bytes) and pad with 0 bytes. Then write the birthday message using the string equivalent of those numbers so that you end up with a list of numbers. Sadly, I think it will take them a few birthdays to figure out.
Admin
You would say, why would races not be an enum? You would say, why would races be separate values, so you could combine them?
Well, now that we have our first white-Hispanic, the method is more useful now isn't it?