Fat XXX's "If Hemingway wrote JavaScript" is a great piece of imaginative writing, speculating about the coding styles that various literary titans (Shakespeare, Hemingway, Dickens, Breton and more) would have employed:
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];
//ACT II: a LOOP in which the final TWO NUMBERS are QUEREED and SUMM'D
//[ENTER: theCounter]
//Commence at one and venture o'er the numbers
for (theCounter = 1; theCounter < theSize; theCounter++) {
//By divination set adjoining members
theResult[theCounter] = (theResult[theCounter-1]||1) + theResult[Math.max(0, theCounter-2)]; }//'Tis done, and here's the answer.
return theResult;//[Exuent] }
If Hemingway wrote JavaScript (via Wired)
I write books. My latest is a YA science fiction novel called Homeland (it's the sequel to Little Brother). More books: Rapture of the Nerds (a novel, with Charlie Stross); With a Little Help (short stories); and The Great Big Beautiful Tomorrow (novella and nonfic). I speak all over the place and I tweet and tumble, too.
MORE: Funny • happy mutants • literary theory • Technology • web theory
More at Boing Boing
-
reglisse
-
http://mordicai.livejournal.com Mordicai
-
fuzzyfuzzyfungus
-
-
https://launchpad.net/~zak-mckracken Zak McKracken
-
fuzzyfuzzyfungus
-
-
http://www.kmoser.com kmoser
-
http://twitter.com/JonnyMiskatonic JohnnyMiskatonic
-
http://www.kmoser.com kmoser
-
-
-
toyg
-
Beanolini
-
Sebastian Liem
-
Chentzilla
-
Sebastian Liem
-
-
-
Jorpho












