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)
《第N+1个》内容简介:12名受害人,凶手作案手法相同,犯罪现场相似,绵延一年,警方却毫无头绪。一部名为《第N 1个》的小说在风口
《企业的护城河》内容简介:众多业内人士、专家、学者联袂推荐 揭示企业如何用宽广的护城河 打造结构性竞争优势、实现长期主义的收
《移动App性能评测与优化》内容简介:本书通过六个专题方向介绍腾讯公司移动互联网事业群在移动应用性能评测优化方面的实战经验,涉
《Flash第1步:ActionScript编程篇》(珍藏版)为《Flash第一步》的ActionScript编程篇,包含后4部分内容。第3部分为ActionS...
《大写的历史:被遗忘的历史事件》内容简介:《左传》既然是战国初期才正式成书,而赵氏宗族又是晋国政治权力博弈中的最后胜利者,
《不打骂、不宠溺、刚刚好的教养力》内容简介:本书通过平和教养与孩子联结,杜绝粗暴教育与过度养育,以情感引导帮助孩子发展自律
标志设计是设计师趋之若鹜的项目,然而它通常也是一名设计师最难驾驭的项目之一。在本书中作者讨论了设计师试图创作一种成功的标
《杀手的记忆法》内容简介:·患上阿尔茨海默症对连环杀手而言,简直是人生送来的烦人玩笑。·韩国当代文坛领军人物金英夏,代表作
《新媒体创业:概念、工具、方法》内容简介:近年来,随着新媒体平台的不断涌现,新媒体创业持续升温。相较于传统创业模式,新媒体
《多云和混合云:云原生多集群和应用管理》内容简介:这是一本讲解如何在多云/混合云的环境下进行多集群管理、多集群应用编排以及应
本书在介绍无线传播理论的基础上对Cdma2000以及WCDMA中先进的关键技术进行了详细的介绍,其中包括日趋成熟的信道编码、调制技术,
再生利用|藝術修復|自然材料|生態住家中古公寓、透天、獨棟、古厝、三合院的綠色變身改造!採光、通風、有機的家--綠色版〔
《智能制造系统:模型、技术与运行》内容简介:本书针对新一轮工业革命中的智能制造系统,在概要阐述智能制造发展历程及其主要参考
PS是这样玩的-轻松掌握Photoshop通关秘籍-(附光盘) 本书特色 《ps是这样玩的——轻松掌握photoshop通关秘籍》主要以生动活泼的闯关模式来设定...
《了不起的中华服饰:壮族》内容简介:本书是一套“民族文化启蒙”的通俗百科类童书,以精心绘制的插图,通俗有趣的文字,讲述了中
UMTS(通用移动通信系统)是ITU的IMT-2000第三代移动通信系统(3G)的重要组成部分,它能为用户带来高达2Mb/s(理论值)的数据传输速率
《少年维特的烦恼》内容简介:歌德是近代杰出的诗人、作家和思想家。世人公认他是继但丁和莎士比亚之后西方精神文明最为卓越的代表
《国外计算机科学教材系列•分布式计算(第2版)》涵盖了分布式计算理论的主要内容,强调不同模型之间的相似点,同时也解释了它们之
你是否从事Android操作系统开发,会创建简单的Android应用,但想进一步提升自己的开发技巧?你是否想深入挖掘Android操作系统的特
《嵌入式实时操作系统μC/OS-2(第2版)》是icroC/OSIITheRealTimeKernel一书的第2版本,在第1版本(V2.0)基础上做了重大改进与...