small medium large xlarge

Now in print: CoffeeScript: Accelerated JavaScript Development, 2nd Edition

February 18, 2015

On this day in 1930, Clyde Tombaugh was looking over some photographs and discovered that loveable, eccentric lump of rock and ice we call Pluto. You'll always be a planet in our hearts.

And back here on our planet, encased in our own lump of winter ice, it's time to warm up your front end with some fresh coffee: CoffeeScript: Accelerated JavaScript Development, Second Edition, now in print and shipping from pragprog.com/book/tbcoffee2.

CoffeeScript: Accelerated JavaScript Development, Second Edition

This new edition has been extensively revised and updated to reflect the current state and features of CoffeeScript. Every chapter has been revised and refactored, and new sections and a new chapter on testing have been added. If you already know JavaScript, this book will make your transition to CoffeeScript easy. If you're new to JavaScript, it's a great place to start.

New in this edition:

  • Automating setup with the Grunt task runner
  • Using CoffeeScript classes with the Backbone framework
  • Using CoffeeScript's simple callback syntax to interact with the Express framework
  • A new chapter on client-side and server-side testing with Mocha
  • A new project that gives you hands-on experience with browser-side and server-side CoffeeScript

CoffeeScript is every bit as portable and effective as JavaScript. It aids development by adding a bevy of features, such as classes, splats, list comprehensions, and destructuring. These features make it easier to write clear, readable code, and by learning how these features work, you'll deepen your understanding of JavaScript as well. This book is your complete guide to writing better JavaScript code, faster.

Top 5 Ways the CoffeeScript World Has Evolved

by Trevor Burnham

  1. Source maps! This long-awaited feature allows stack traces to reference the original CoffeeScript source code, rather than the compiled JavaScript. This makes debugging much easier, breaking down the barrier between "pure" JavaScript and machine-made JavaScript.

  2. Next-generation build tools. Grunt and its ilk make it much easier to manage complex project toolchains with scripts for compiling, minifying, and running code during development. That's great news for CoffeeScripters working outside of Rails.

  3. The spread of Node. When the first edition of the book came out, Windows users had to use an emulated Linux environment like Cygwin to use Node-based CoffeeScript tools. Node has come a long way since then. You probably already have it on your machine, and if you don't, it's a breeze to install.

  4. A mature community. Top-tier tech companies like 37signals and GitHub use CoffeeScript production, and the style of CoffeeScript code has become more standardized as a result. Plus, it's easy to find help on Stack Overflow.

  5. ECMAScript 6. Many of CoffeeScript's features (shorthand function syntax, classes, destructuring…) have been embraced and adopted as part of the next generation of JavaScript. The ES6 standard hasn't yet been ratified, so CoffeeScript allows you to enjoy the future of JavaScript, today!

Now in print and shipping from pragprog.com/book/tbcoffee2.

Upcoming Author Appearances

  • 2015-02-27 Rachel Davies, NorDevCon, Norwich, UK
  • 2015-02-27 Seb Rose, NorDevCon, Norwich, UK
  • 2015-02-28 Adam Tornhill, Beauty in Code, Malmö, Sweden
  • 2015-03-04 Adam Tornhill, QCon London 2015, UK
  • 2015-03-05 Rachel Davies, QCon London
  • 2015-03-09 Johanna Rothman, Booster Conference, Bergen, NO
  • 2015-03-09 Jamis Buck, Mountain West Ruby Conference, Salt Lake City, Utah
  • 2015-03-10 Johanna Rothman, Booster Conference, Bergen, NO
  • 2015-03-11 Johanna Rothman, Booster Conference, Bergen, NO
  • 2015-03-12 Johanna Rothman, Booster Conference, Bergen, NO
  • Did You Know?

    We publish books across a range of technologies for folks at different levels of abilities, all the way from novice to expert. If you haven't browsed all of our titles recently, come take a look:

    Agile Practices • Android, iPhone, and Mobile Programming • Career Development • Cool Things for Smart People • DIY & Hardware • For Beginners • Gaming • Java and JVM Languages • Mac, iPhone, and iPad Programming • Pragmatic exPress • Ruby and Rails • Testing, Design, and Cloud Computing • Tools, Frameworks, Languages • Web 2.0+

    Come check out all our categories at pragprog.com/categories

    Don't Get Left Out

    Are your friends jealous that you get these spiffy email newsletters and they don't? Clue them in that all they need to do is create an account on pragprog.com (email address and password is all it takes) and select the checkbox to receive newsletters.

    Are you following us on Twitter and/or Facebook? Here's where you can find us and keep up with the latest news and commentary, and occasional discounts:

    Tell your friends! Tweet this

    Follow us on Twitter: @pragprog, @pragpub, Andy @PragmaticAndy and Dave @pragdave.

    Coming Soon:

    • The Nature of Software Development: Keep It Simple, Make It Valuable, Build It Piece by Piece

    Recently Released:

    Thanks for your continued support,

    Andy & Dave The Pragmatic Programmers

    Books • eBooks • PragPub Magazine • Audiobooks and Screencasts
    PragProg.com