CoffeeScript is JavaScript done right. It provides all of JavaScript’s functionality wrapped in a cleaner, more succinct syntax. In the first book on this exciting new language, CoffeeScript guru Trevor Burnham shows you how to hold onto all the power and flexibility of JavaScript while writing clearer, cleaner, and safer code.

Buy Now

Select a DRM-free Format:

In Stock
In Stock
In Stock
Buy the eBook and get these DRM-free formats delivered immediately:
  • epub (for iPhone/iPad, Android, eReaders)
  • mobi (for Kindle)
  • PDF
We can automatically send them to your Kindle or Dropbox, and for a social reading experience we can link the book to your Readmill account. (You'll need to log in to enable these options.)
 

About this Book

  • 160 pages
  • Published:
  • Release: P1.0 (2011-07-25)
  • ISBN: 978-1-93435-678-4

CoffeeScript: Accelerated JavaScript Development offers a thorough introduction to this new language, starting from the basics. You’ll learn to use time-saving features like list comprehensions and splats, organize your code into modules with extensible classes, and see how to deploy your work to multiple environments. Each chapter is example-driven and includes challenging exercises to push your CoffeeScript know-how further.

Through the course of the book, you’ll build a fast-paced multiplayer word game‚ writing both the client (with jQuery) and server (with Node.js) in CoffeeScript. And because the two languages are so deeply intertwined, you’ll deepen your understanding of JavaScript along the way.

CoffeeScript makes it easier than ever to write powerful, standards-compliant JavaScript code. This book lets you start doing it today.


David Heinemeier Hansson, Creator, Rails, says:

“It’s hard to imagine a new web application today that doesn’t make heavy use of JavaScript, but if you’re used to something like Ruby, it feels like a significant step down to deal with JavaScript, more of a chore than a joy. Enter CoffeeScript: a pre-compiler that removes all the unnecessary verbosity of JavaScript and simply makes it a pleasure to write and read. Go, go, Coffee! This book is a great introduction to the world of CoffeeScript.”

Brendan Eich, Creator, JavaScript says:

“This book helps readers become better JavaScripters in the process of learning CoffeeScript. What’s more, it’s a blast to read, especially if you are new to CoffeeScript and ready to learn.”

Sam Stephenson, Programmer, Creator of, Prototype JavaScript framework says:

CoffeeScript: Accelerated JavaScript Development is an excellent guide to CoffeeScript from one of the community’s most esteemed members. It’ll help you get up to speed with the language in no time, whether you write code that runs in the browser or on the server. Trevor’s book belongs on every CoffeeScript developer’s shelf.”

Contents and Extracts

Full Table of Contents

Foreword

  • Acknowledgments

Preface

  • Getting Started
  • Functions, Scope and Context
  • Collections and Iteration excerpt
  • Modules and Classes
  • Web Interactivity with jQuery
  • Server-side Apps with Node.js excerpt
  • Answers to Exercises
  • Ways of Running CoffeeScript
  • Cheat Sheet for JavaScripters
  • Bibliography

About the Author

Trevor Burnham is a full-stack web developer with a passion for new technologies. He is the founder of DataBraid, a startup developing data analysis and visualization tools that support remote collaboration. When on Twitter, he goes by @TrevorBurnham and @CoffeeScript. When offline, he’s usually in Cambridge, MA.

Upcoming Author Events

  • 2013-05-28: Trevor Burnham
    Flow Control with Promises: Learn to control async tasks in JavaScript with Promise-based interfaces. (Fluent 2013)

Comments and Reviews

  • Fasten your seat belt and enjoy the ride with Trevor Burnham from JavaScript to CoffeeScript and have fun with web development again.

    —Javier Collado QA Automation Engineer Canonical Ltd.
  • Trevor serves up a rich blend of language overview and real-world examples, showcasing why I consider CoffeeScript my secret weapon for iOS, Android, and WebOS mobile development.

    —Wynn Netherland Co-host, The Changelog
  • CoffeeScript is one of the most interesting developments in the world of programming languages in the last few years. Taking the lessons learned over the last decade from languages like Ruby and Python, it is a language with immense expressive power. “CoffeeScript: Accelerated JavaScript Development” is your guide to this new language and a must-read for those interested in being productive in JavaScript.

    —Travis Swicegood Author, "Pragmatic Version Control Using Git"
  • CoffeeScript may turn out to be one of the great innovations in web application development; since I first discovered it, I’ve never had to write a line of pure JavaScript. I hope the readers of this wonderful book will be able to say the same.

    —Dr. Nic Williams CEO/Founder Mocra
  • Though CoffeeScript is a new language, you can already find it almost everywhere. This book will show you just how powerful and fun CoffeeScript can be.

    —Stan Angeloff Managing Director PSP WebTech Bulgaria
  • Just like CoffeeScript itself, Trevor gets straight to the point and shows you the benefits of CoffeeScript and how to write concise, clear CoffeeScript code.

    —Scott Leberknight Chief Architect Near Infinity