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)
《5G移动通信:面向全连接的世界》内容简介:本书从5G需求与愿景出发,深入揭示了5G产生的背景、频率需求、候选频率及其无线传播特
《短视频拍摄与制作(微课版)》内容简介:随着移动互联网的高速发展,短视频行业也发展迅猛,成为5亿多人的信息关注、分享和传播的
《市场有效周期理论的构建、实证及应用》内容简介:本书对有效市场假说进行了修正与发展,构建了市场有效周期理论,并运用具有代表性
《中国人的情商口才圣经》内容简介:《中国人的情商口才圣经》共10个板块49章,以“情商养成养育”为纲,“智商水平、情智倾听、成
《跨境电商运营从基础到实践》内容简介:跨境电商案例,系统、全面地介绍了跨境电商的理论与实际操作,内容包括走进跨境电商、跨境
中文版Photoshop标准教程 本书特色 《中文版photoshop标准教程》:专家编著,依纲编写:《中文版photoshop标准教程》由国内一线photos...
《任正非与华为神话》内容简介:华为作为中国最伟大的企业,成立于1987年,目前拥有超过18万名员工,业务遍及170多个国家和地区,年
Java办公自动化项目方案精解(附光盘) 内容简介 本书采用当今*流行的Java语言来实现前台的控制界面。后台数据库考虑到读者的广泛性,采用当今功能*为强大的O...
本书解答了101个建筑设计中的关键问题,从建筑入门必须的知识,到弄清楚建筑设计过程中容易熟视无睹的问题,以一图一文的形式,将
《cdma2000 1x EV-DO系统、接口与无线网络优化》内容简介:《cdma2000 1x EV-DO系统、接口与无线网络优化》从EV-DO的各种技术版本...
本书是一本总结实践经验和成果的作品,主要为测试人员规划、设计、实施Web性能测试而编写。本书既包含Web性能测试的基础理论,又
单片机C语言程序设计实训100例-基于8051+Proteus仿真 内容简介 本书基于Keil μVision程序设计平台和Proteus硬件仿真平台,精心编写...
Asawebdesigner,youencountertoughchoiceswhenitcomestoweighingaestheticsandperform...
《Python入门很轻松:微课超值版》内容简介:本书是针对零基础读者研发的Python入门教材。该书侧重实战,结合流行、有趣的热点案例
《古典吉他入门完全自学教程》内容简介:音乐的本质是通过声音传递人的内心情绪及各种感受,也就是我们常说的“情感”。人类有着丰
本书介绍了Python应用在各个领域中的一些使用技巧和方法,从最基本的字符、文件序列、字典和排序,到进阶的面向对象编程、数据库
《学者的本分》内容简介:本文集由三部分组成——传统士人的气节、近代变革的文化坚持、现代学术制度的确立。全书的旨趣是想借此反
《创意才是核心竞争力》内容简介:“天下难事,必作于易;天下大事,必作于细”,无论你是从细微处着手,还是从小事情做起,如果能
《考研阅读句句讲(英语一)》内容简介:本书以作者独创的“读9项”速解阅读题和“主干公式”为指导,以考研英语真题阅读的每一篇为
《建筑学教程2:空间与建筑师》进一步充实了《建筑学教程1:设计原理》,拥有深厚的内涵。《建筑学教程2:空间与建筑师》追溯了他近