Skip to Content
Programming in CoffeeScript
book

Programming in CoffeeScript

by Mark Bates
May 2012
Intermediate to advanced
320 pages
5h 31m
English
Addison-Wesley Professional

Overview

Use CoffeeScript to Write Better JavaScript Code Than Ever Before!

If you can do it in JavaScript, you can do it better in CoffeeScript. And, since CoffeeScript “compiles down” to JavaScript, your code will fit neatly into virtually any web environment. In Programming in CoffeeScript, Mark Bates shows web developers why CoffeeScript is so useful and how it avoids the problems that often make JavaScript code buggy and unmanageable. He guides you through every feature and technique you need to write quality CoffeeScript code and shows how to take advantage of CoffeeScript’s increasingly robust toolset.

Bates begins with the absolute basics of running and compiling CoffeeScript and then introduces syntax, control structures, functions, collections, and classes. Through same page code comparisons, you’ll discover exactly how CoffeeScript improves on JavaScript. Next, you’ll put it to work in building applications that are powerful, flexible, maintainable, concise, reliable, and secure. Bates shares valuable tips for better development, illuminating CoffeeScript’s hidden gems and warning you about its remaining “rough edges.” The book concludes with a start-to-finish application case study showing how to code back-ends and front-ends and integrate powerful frameworks and libraries. Coverage includes

  • Understanding the right ways to compile and execute CoffeeScript

  • Using CoffeeScript’s clean syntax to focus on your code, not JavaScript’s distractions

  • Working with CoffeeScript’s control structures, functions, and arguments

  • Taking full advantage of CoffeeScript’s implementation of collections and iterators

  • Leveraging CoffeeScript’s full class support to create complex data models

  • Automating common application development tasks with Cake and Cakefiles

  • Configuring Jasmine with CoffeeScript support, and using it to systematically test your code

  • Writing Node.js server-side applications in CoffeeScript

  • Using CoffeeScript to write jQuery and Backbone.js applications

  • Integrating framework code to avoid “reinventing the wheel”

  • Want a better way to create the JavaScript code your web applications need? CoffeeScript is the solution–and this book will help you master it!


     

    Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
    and much more.

    Read now

    Unlock full access

    More than 5,000 organizations count on O’Reilly

    AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

    QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
    Julian F.
    Head of Cybersecurity
    QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
    Addison B.
    Field Engineer
    QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
    Amir M.
    Data Platform Tech Lead
    QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
    Mark W.
    Embedded Software Engineer

    You might also like

    CoffeeScript Application Development

    CoffeeScript Application Development

    Ian Greenleaf Young
    Programming Elm

    Programming Elm

    Jeremy Fairbank

    Publisher Resources

    ISBN: 9780132946155Purchase bookOther