If Hemingway Wrote JavaScript

by Angus Croll

October 2014, 192 pp.
ISBN: 978-1-59327-585-3

Use coupon code PREORDER to get 30% off!
Contents | Reviews | Updates

Look Inside!

If Hemingway Wrote JavaScriptIf Hemingway Wrote JavaScript

What if William Shakespeare were asked to generate the fibonacci series or Jack Kerouac had to write a factorial program? In If Hemingway Wrote JavaScript, prose and poetry meet code as author Angus Croll explores what it would look like if wordsmiths were to write short JavaScript programs.

The best authors and the best JavaScript developers are those who obsess about language, who explore and experiment with language every day and in doing so develop their own style, their own idioms, and their own expression. By combining literary lines of code and reinvented poetry with JavaScript, If Hemingway Wrote JavaScript bridges the worlds of programming and literature with a light and playful spirit for the literary geek in all of us.

Featuring original artwork by Miran Lipovača.

About the Author

Angus Croll is obsessed with JavaScript and literature in equal measure. He works on Twitter's UI framework team where he co-authored the Flight framework. He writes the influential JavaScript, JavaScript blog and speaks at conferences worldwide.

Table of Contents



1 Ernest Hemingway
2 William Shakespeare
3 André Breton
4 Roberto Bolaño
5 Dan Brown


6 Jack Kerouac
7 Jane Austen
8 Samuel Johnson
9 Sir Arthur Conan Doyle
10 James Joyce

Happy Numbers

11 J.D. Salinger
12 Tupac Shakur
13 Virginia Woolf
14 Geoffrey Chaucer
15 Vladimir Nabokov

Prime Numbers

16 Jorge Luis Borges
17 Lewis Carroll
18 Douglas Adams
19 Charles Dickens
20 David Foster Wallace

Say It

21 Sylvia Plath
22 Italo Calvino
23 J.K. Rowling
24 Arundhati Roy
25 Franz Kafka

Poetic Interludes

1 Edgar Allan Poe
2 William Shakespeare
3 Dylan Thomas
4 Walt Whitman

View the detailed Table of Contents (PDF)



"To Angus Croll: thank you for asking me to read this, and thank you for sharing it with the world. It’s a real treat, and a book whose time has come."
—Rob Friesel, author of The PhantomJS Cookbook (Read More)

"Wild experiments are what moves a genre forward. And this is a format of programming book that's certainly never been tried before."
—Marijn Haverbeke (Read More)