Literary Javascript

Twitter developeshakespearer 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


Newest 1
Newest 1 Comment

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.)
Commenting is closed.





Check out Twaggies' first animated clip:

Grammar Nazi's Rock? Twaggies by twaggies
Email This Post to a Friend
"Literary Javascript"

Separate multiple emails with a comma. Limit 5.

 

Success! Your email has been sent!

close window