Are we fuggin retarded or what?
Yeah, I know its been a long time, but with Christmas and all, things are slowing down at the salt mine and that means, more bloggin' time.
Yeah, baby! Let's get to it.
The only non-culturally befuddled habib around here steps up today:
NCBHabib: Mr. Friendly, when you calculate someone's age, does the number increment on or after the birthdate?
Restraining oneself from slapping someone silly for asking such a stupid question can really build character.
Me: The day the birthday falls ON! You friggin mo-mo! I imagine in your country, you actually turn five three weeks and a day following your fifth birthday.
He continues.
NCBHabib: Then why would someone (identity redacted because it would cost me my job) who was born on this day, five years ago, have an age of four?
...crickets...Me: How the fug do I know? Let's look at the code.
So we look at the code, but the problem is there are two versions that supposedly do the same thing, get a list of people and show some characteristics (race, language, AGE!, etc.). MY version calculates the age of the person and is correct.
Always. well, so far.
Then there is the code Habibalala used. The nitwit who wrote it just took the age from the database.
i.e. WHAT?!I laugh.
You're not laughing. Ok, I will explain. There are two different kinds of data. Static data, like for instance a person's birth date. You know, data that will not change relatively often. Then there is Derived data, that is data that should be figured out each and every time you access it because that is a heck of alot easier than updating it every fuggin' year, month, week, day, second.
The only problem with this little model is when some yo-yo confuses the two types.
Guess what my little habibalalas did?
Yes, you are correct, sir!
I fuggin laugh at NCBHabib. He must take the issue up with his fellow subcontinenter who wrote the crap code.
I wish him luck and kick his arse out of my cubicle.