Literary Javascript

Twitter developer and book nerd Angus Croll wondered what famous authors would do with javascript. His gives examples from his imagination for four great writers: Ernest Hemingway, Andre Breton, Roberto Bolano, and William Shakespeare. Here's how the Bard might write code:

function theSeriesOfFIBONACCI(theSize) {

  //a CALCKULATION in two acts.
  //employ'ng the humourous logick of JAVA-SCRIPTE

  //Dramatis Personae
  var theResult; //an ARRAY to contain THE NUMBERS
  var theCounter; //a NUMBER, serv'nt to the FOR LOOP

  //ACT I: in which a ZERO is added for INITIATION

  //[ENTER: theResult]

  //Upon the noble list bestow a zero
  var theResult = [0];

That's just Act One. See Act Two and the other authors at Fat XXX. Link -via Metafilter


Angus Croll's best line, from the Hemingway JavaScript: Hemingway didn’t suffer fools gladly so if you ask for a series with less than two numbers he’ll just ignore you. “I’m tired and this question is idiotic”.

Great find, Miss C!
Abusive comment hidden. (Show it anyway.)
Login to comment.
Click here to access all of this post's 1 comments




Email This Post to a Friend
"Literary Javascript"

Separate multiple emails with a comma. Limit 5.

 

Success! Your email has been sent!

close window
X

This website uses cookies.

This website uses cookies to improve user experience. By using this website you consent to all cookies in accordance with our Privacy Policy.

I agree
 
Learn More