Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

CoffeeScript

I’ve mentioned CoffeeScript a few times throughout this book. CoffeeScript is similar to LiveScript in that it’s a unique language that compiles to JavaScript. As I mentioned in Chapter 5, it is one of the parents of LiveScript, therefore much of what I stated about LiveScript also applies to CoffeeScript. The biggest difference between LiveScript and CoffeeScript is that LiveScript has more of a focus on providing support for developing in a more functional style.

Note

While this appendix focuses on client-side technologies, CoffeeScript is not limited to only client-side development. It can also be used for server-side development thanks to Node.js.

You may be wondering why you might wish to choose CoffeeScript over LiveScript. CoffeeScript has been steadily growing in popularity. Because of this, it has a great support group, lots of online examples, and a growing subset of tool support. The biggest things you lose when choosing CoffeeScript over LiveScript include several of the functional stylistic concepts that LiveScript provides as well as a few of the niceties of Coco, which as I said in Chapter 5 is one of the parents of LiveScript.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint