Facebook Messaging Fail!

November 13, 2010 § 1 Comment

I was writing a small snippet of code to send to a friend through Facebook and this is what it turned my code into:

for (i=0; i♥; i+1) {
if (t<200) {
document.write (“yes”);
} else {
document.write (“no”);
}
}

See anything strange in there?  IT TURNED MY ❤ INTO A HEART!!  It also destroyed my nesting but that isn’t nearly as offensive as the heart!  I’m surprised no mathematicians or programmers have commented on this yet!

To be fair, my code was not really for a functional purpose but still – I would like the integrity of the intent to remain  constant and not be convoluted by random shapes.  If you were wondering, the message chain is as follows:

Friend:  Still planning on going to Mammoth?

Me:  Hey,  Allan and I are on the fence pending cost and likelihood of another snow trip.  I will be nerdy (and AWESOME) and put this in pseudo code.
/*t=total cost of mammoth trip in dollars (including transportation and rental/lift cost)*/
/* i=number of snowboarding trips this year (tahoe, mammoth, etc.)*/

for (i=0; i<3; i+1) {
if (t<200) {
document.write(“yes”);
} else {
document.write(“no”);
}
}

Someone should make a Facebook group protesting the auto convert into a heart.

P.S. To Anjul – I promise I don’t spend all my time thinking of how to integrate code into nerdy messages. 🙂

**Disclaimer:  I properly nested the code the second time around but WordPress took out the nesting/spaces.  That’s a shame.  It took a while to get right. =/

Advertisements

Nuggets from WordPress

November 5, 2010 § 1 Comment

I know I said I would update on Seattle but I just had to share some of the golden nuggets I found on WordPress’s “freshly pressed” page.

A mom’s heartwarming perspective regarding her son’s recent Halloween costume

http://nerdyapplebottom.com/2010/11/02/my-son-is-gay/

 

Slam poetry at its best

http://nhwn.wordpress.com/2010/11/04/need-to-inject-some-passion-into-your-writing-slam-baby/

 

Some great photos from the Giants parade

http://rendylai.wordpress.com/2010/11/04/sf-giants-parade-10/

 

Where Am I?

You are currently viewing the archives for November, 2010 at You, Me, and Everyone Else.