If Hemingway Wrote JavaScript

by Angus Croll

October 2014, 192 pp.
ISBN: 978-1-59327-585-3
Contents | Reviews | Updates

PDF available now, Mobi and ePub coming soon

Get 30% off with the coupon code MARLIN

Look Inside!

If Hemingway Wrote JavaScriptIf Hemingway Wrote JavaScript
If Hemingway Wrote JavaScriptIf Hemingway Wrote JavaScript

What if William Shakespeare were asked to generate the Fibonacci series or Jane Austen had to write a factorial program? In If Hemingway Wrote JavaScript, author Angus Croll imagines short JavaScript programs as written by famous wordsmiths. The result is a peculiar and charming combination of prose, poetry, and programming.

The best authors are those who obsess about language—and the same goes for JavaScript developers. To master either craft, you must experiment with language to develop your own style, your own idioms, and your own expressions. To that end, If Hemingway Wrote JavaScript playfully bridges the worlds of programming and literature 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

Introduction

Fibonacci

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

Factorial

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)

(top)

Reviews

"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)

"A thought experiment, appealing to Javascript and literary nerds alike."
—Dan Shurley, for nomadic sojourns creative collective (Read More)

"Last night I read If Hemingway Wrote JavaScript, twice, then pre-ordered a physical copy."
—Rick Waldron (creator of Johnny-Five and JavaScript standards author)

(top)