Welcome to MSDN Blogs Sign in | Join | Help

Why don't you ever see a rat vomiting?

Okay, maybe you never wondered why you never saw a vomiting rat, but the intrepid researchers at the Annals of Improbable Research have discovered that there's a good reason, and Anne's rat page will explain in more detail than you probably wanted.

Published Wednesday, June 01, 2005 7:00 AM by oldnewthing
Filed under:

Comments

# re: Why don't you ever see a rat vomiting?

Wednesday, June 01, 2005 9:32 AM by muro
Now this is one thing I never needed to know. Or as (I think) Sherlock Holmes put it:
Interesting...now I hope I will forget soon. So my brain can remember important things.

# re: Why don't you ever see a rat vomiting?

Wednesday, June 01, 2005 10:54 AM by alex
Oh, I feel like vomiting :)

# re: Why don't you ever see a rat vomiting?

Wednesday, June 01, 2005 11:07 AM by Dave
"Why don't you ever see a rat vomiting?"

Maybe because I don't want to see a rat at all, much less a rat vomiting?

I saw a chicken play the piano once though.

# re: Why don't you ever see a rat vomiting?

Wednesday, June 01, 2005 11:43 AM by D. Philippe
Now there's two new words I hope I will never need to use in my vocabulary:

<a href="http://www.answers.com/pica&r=67">pica</a>: An abnormal craving or appetite for nonfood substances, such as dirt, paint, or clay.

<a href="http://www.answers.com/emetic&r=67">emetic</a>: Causing vomiting.

# re: Why don't you ever see a rat vomiting?

Wednesday, June 01, 2005 1:57 PM by Josh Koppang
Pica also shows up in pregnant women. A flyer that my wife got from her doctor listed reasons that she would need to come in to the doctor. Among them was: "Eating non-food substances such as bleach and charcoal."

# re: Why don't you ever see a rat vomiting?

Wednesday, June 01, 2005 6:38 PM by KIm
Makes me wonder how they tested sea sick pills.

# re: Why don't you ever see a rat vomiting?

Wednesday, June 01, 2005 8:15 PM by Anonymous Coward
I never saw a Microsoft employee vomiting. Maybe we're onto something.

# re: Why don't you ever see a rat vomiting?

Thursday, June 02, 2005 6:55 AM by Asd
Aha. So that's why when they've eaten poison and are staggering round they don't try to vomit it up.

# re: Why don't you ever see a rat vomiting?

Thursday, June 02, 2005 8:47 PM by Anonymous Coward II
"I've seen Microsoft libraries vomit though."

"Not vomit, throw."

"Oh yeah. By the way, if the owner of this blog sees the way your code abuses exceptions, "

"Shut up."

# re: Why don't you ever see a rat vomiting?

Friday, June 03, 2005 12:30 AM by carlso
> From the article: "One of the main functions of vomiting is to purge the body of toxic substances. Rats can't vomit, but they do have other strategies to defend themselves against toxins... When rats discover a new food, they taste a little of it, and if it makes them sick they scrupulously avoid that food..."

In other words, the human digestive system is exception-based whereas a rat's system uses error return codes.

Human:
try
{
while (!Full())
{
// Caution: human can throw up exceptions here
EatFoodBite();
}
}
catch (...)
{
RunToBathroom();
}


Rat:
bool fGoodFood = true;
while (fGoodFood && !Full())
{
fGoodFood = EatFoodBite();
}

or, for your highly-optimized rat:
while (!Full() && EatFoodBite())
;

Next time, we'll examine how the introduction of additional mouths and stomachs to a rat can dramatically increase throughput, and what changes are needed to our food dispatching loop to accommodate them. ;-)
New Comments to this post are disabled
 
Page view tracker