Friday, November 18, 2011

An Algorithm for Parents

Here is something I sent to a friend whose wife just gave birth:
-----------------------------------------------------------

while (baby.isCrying())
{
baby.Burp();
if (!baby.isCrying())
{
output("your baby had gas");
exit;
}

if (baby.needsDiaperChange())
baby.changeDiaper();

if (!baby.isCrying())
{
output("your baby needed a change");
exit;
}

baby.Cuddle();
if (!baby.isCrying())
{
output("your baby needed a cuddle");
exit;
}

baby.Feed();
if (!baby.isCrying())
{
output("your baby was hungry");
exit;
}

baby.holdAndRockGently();
if (baby.isSleeping())
{
output("your baby was tired");
exit;
}
}

Thursday, November 3, 2011

Update to Occupy X

One of the things I had mentioned in my previous post was that I wished the Occupy folks had more direction, and I did wish them to succeed, but I had no idea (nor did I believe did they) what success meant.

I found this article that goes one step further and clarifies what their goals SHOULD be:
http://www.prosebeforehos.com/article-of-the-day/10/12/giving-direction-to-occupy-wall-street/