Now on Kindle!!


by Angus Croll

Illustrations by Miran Lipovača. Foreword by Jacob Thornton

Published by No Starch Press

the cover


Huffington Post Books
Nomadic Sojourns
Seattle Post-Intelligencer

From the introduction...

"Recently I had a dream in which I set homework assignments for Ernest Hemingway and twenty-four other literary luminaries. Each author received one of five tasks--common coding problems, mostly mathematical--which they were to solve using JavaScript.

To my astonishment, after a few days, completed assignments started arriving in my mailbox. Still more remarkable, with the exception of Kafka's accursed effort, they all seemed to work.

Naturally this was all too good to keep to myself so I've reproduced their solutions in this book. To help put the answers in context, I've written a short biography of each author, and followed their code with a brief explanation of what I think they were up to. As a respite between assignments I've included some poetic interludes: long forgotten odes documenting their author's struggle with everyone's favorite programming language.



"If Hemingway Wrote Javascript is a strange and beautiful book"—Robin Sloan, author Mr. Penumbra’s 24‑Hour Bookstore

"Yes, If Hemingway Wrote JavaScript by @angustweets is cool"—Brendan Eich, inventor of JavaScript, co-founder of Mozilla

"code + literature + art are beautifully represented in @angustweets' new book"—Jenn Schiffer, Bocoup engineer, celebrity speaker, comedian

"I have to admit that I enjoyed this book...some of the solutions are absolutely charming"—Marijn Haverbeke, author Eloquent JavaScript

"...a thought experiment, appealing to JavaScript and literary nerds alike"–Dan Shurley, Nomadic Sojourns

"Best hypothetical question we've heard in a while"–The Millions

"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

"I'm so excited by the "If Hemingway wrote JavaScript" book by the completely brilliant Angus Croll"–Robert Nyman, Mozilla Tech Evangelist, Editor of Mozilla Hacks

"..a real treat, and a book whose time has come"—Rob Friesel, novelist and author of PhantomJS Cookbook

" is wonderful. Truly."—Steve Klabnik, author Rust for Rubyists, web celebrity

"Looking forward to a tech book for the first time in a long time. [This] is going to be rad"–Brian LeRoux, creator Phone Gap