At the heart of JavaScript is a beautiful little language.
Unfortunately, that inner beauty is clouded with awkward syntax and structure. CoffeeScript is a new way to write JavaScript, providing Ruby-like readability and a more expressive syntax. It compiles into standard JavaScript and works on all implementations without modification.
CoffeeScript in Action is a tutorial that teaches you how, where, and why to use CoffeeScript. It begins by quickly exposing you to CoffeeScript's new, but instantly-familiar syntax. Then, you'll explore programming challenges that illustrate CoffeeScript's unique advantages. Language junkies will especially appreciate how this book takes idioms from other programming languages and shows you how CoffeeScript makes them available in JavaScript.
So why you should bother learning a new way to code JavaScript?
CoffeeScript preserves everything you know and love about JavaScript and wraps it in a modern, efficient syntax. It's perfect for complex web programming, including server-side JavaScript executing on Node.js. CoffeeScript also enhances JavaScript's natural Functional Programming features, a big advantage for building high-capacity, fault-tolerant applications. CoffeeScript is fully supported in Rails 3.1, and, via a free plugin, even Microsoft Visual Studio. Plus, it's really cool.
WHAT'S INSIDE
Complete coverage of CoffeeScript's syntax and structure
Examples illustrating best practices and patterns for web application development
Introduction to functional programming
Prototype-based OOP
This book is written for developers with exposure to JavaScript. No prior exposure to CoffeeScript is required.
Table of Contents Resources
PART 1 FOUNDATIONS
1 The road to CoffeeScript - FREE
2 Syntax - AVAILABLE
3 Functions - AVAILABLE
4 Dynamic objects - AVAILABLE
PART 2 COMPOSITION
5 Composing objects - AVAILABLE
6 Composing with functions
7 Advanced syntax and other idioms
8 Metaprogramming
9 Thinking asynchronous
PART 3 WRITING PROGRAMS
10 Server techniques
11 Driving with tests - AVAILABLE
12 Client and interface techniques
13 Modules and builds - AVAILABLE
14 The future
APPENDIXES
A Reserved words - AVAILABLE
B Answers to exercises - AVAILABLE
Author Online
Go here to discuss this title with the author
CoffeeScript vs. JavaScript (PDF)
Source code (331 KB)
Welcome to CoffeeScript (PDF)
本书是编程语言先驱者IvorHorton的经典之作,是C语言方面最畅销的图书品种之一。本书集综合性、实用性为一体,是学习C语言的优秀
《未来机器人畅想》内容简介:经过几十年的努力、实验和改进,工程师已经优化了复杂的人机协作关系,使商业航空运输系统为我们带来
C#网络应用编程(第2版) 内容简介 本书主要介绍如何用C#开发Windows窗体网络应用程序。全书分3部分,第1部分介绍网络编程预备知识;第2部分介绍协议类基...
作者简介:JeanWalrand在美国加州大学伯克利分校取得EECS博士学位,自1982年以来一直在该校任教,研究兴趣包括随机过程、排队论、
欧洲人用他们的浪漫洒脱,以及悠久的艺术传统造就了欧洲设计在世界上独树一帜的风采。本书汇集了奥地利著名设计学院历年的学生作
《淘宝店铺经营管理一册通》内容简介:《淘宝店铺经营管理一册通》基于多家淘宝金冠卖家多年来开店的经验,针对淘宝管理和客服进行
《灾害康复医学》内容简介:全书内容包括绪论、灾害伤员早期医学救援、灾害伤员康复治疗(物理治疗、作业治疗、假肢矫形)、灾害伤
《计算机应用基础》内容简介:《计算机应用基础》是专门针对中等职业教育的基础课程设计的基础应用教程,旨在加强基础,提高能力,
網路可以說是自電腦發明後,最重要的發明了。網路不僅形成了一種新的通路與媒體,網路更與我們的日常生活息息相關。因此一個網站
《Python人脸识别:从入门到工程实践》内容简介:本书讲解了人脸识别模型的实现原理和特点,更重要的是强调了工程上的实践能力,对
代数多重网格方法原理及图像工程应用 本书特色 本书以代数多重网格方法为主题,对代数多重网格方法的理论进行了初步探讨,并将其应用到图像工程的多个领域,如清晰度检测...
《忽有山河大地:龚贤笔下的“荒原”》内容简介:本系列作品,通过对元代以来十六位画家的观照,来看文人画对生命“真性”追踪的内
《两岸新编中国近代史·晚清卷(全2册)》内容简介:改革开放以来,随着大量过去深藏不露的档案文献史料的开放和全球化进程,以及国
《破绽:风口上的独角兽》内容简介:互联网时代是一个英雄不问出处的草莽时代。这个时代造就了一大批独角兽公司和新兴业态,它们出
《Python程序设计案例课堂》内容简介:本书以零基础讲解为宗旨,用实例引导读者深入学习,采取“基础知识→核心技术→高级应用→项
内容简介:怎样才能将访问者转化为顾客?本书提供了一些切实可行的建议,比如如何说服访问者作出购买决定,如何避免用户因信息过
《现代性的谱系》内容简介:本书从错综复杂的现代性图谱中抽离出“世俗趣味”“工具理性”“个性表现”三种典型取向,并将“自由主
Apple公司的iPhone已经开创了移动平台新纪元!它与AppStore的绝配也为全世界的程序员提供了一个施展才华的全新大舞台。只要有新奇
《收益递增:转型期中国社会的经济学原理》内容简介:本书内容出自汪丁丁教授近年为北京大学国家发展研究院开设的EMBA课程。作者认
《为书作嫁》内容简介:本书是“日知文丛”之一。是南京大学古典文献研究所所长程章灿教授历年所写的50篇书评、序跋、随笔集。全书