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)
《敦煌南朝写本书法研究》内容简介:本书在对敦煌南朝写本进行整理的基础上,之分为题记为南朝写本和题记未注明为南朝写本、但有可
Node.js是一种方兴未艾的新技术,诞生于2009年。经过两年的快速变化,Node.js生态圈已经逐渐走向稳定。Node.js采用了以往类似语言
Thisnon-technicalbookbringstogethercontemporarywebdesignslatestandmostoriginalcr...
AByteofPythonisabookonprogrammingusingthePythonlanguage.Itservesasatutorialorgui...
想象一下,一个网页只有HTML,没有CSS,那就是素颜和上妆的区别。而一个网页只有CSS,没用CSS3,那就是马车和汽车的区别!汽车代
《国家时代》内容简介:以中国人的语言谱系解析世界文明,看人类国家文明的历史发展逻辑;以世界文明的视野呈现中国文明,在对比中
《细胞神经网络动力学》主要内容包括:细胞神经网络动力学是神经网络与动力系统交叉结合的一门新型学科,《细胞神经网络动力学》
"Ifyoureseriousaboutrecording-whetheryoureanamateurenthusiast,astudent,amusician...
信息可视化致力于创建那些以直观方式传达抽抽象信息的手段和方法。可视化的表达形式与交互技术则是利用人类眼睛通往心灵深处的广
《解读区块链》内容简介:本书用通俗的语言介绍了区块链相关的起源、发展和目前的状况,主要介绍了区块链对于金融行业的影响,以及
《视觉艺术原理(第8版)》,精心融汇了以前各版的优势,强调了《视觉艺术原理(第8版)》在全球视觉艺术领域中的引领地位。并率先把
《生活之美》内容简介:《生活之美》中国社会科学院研究员、知名美学专家刘悦笛对中国生活美学的赏析解读。“生活美学”中蕴含着华
Solidworks基础教程:工程图-(2008版)(含1CD) 内容简介 《SolidWorks基础教程:工程图》(2008版)是根据SolidWorks公司...
本书用Python语言来讲解算法的分析和设计。本书主要关注经典的算法,但同时会为读者理解基本算法问题和解决问题打下很好的基础。
《Prometheus监控实战》内容简介:本书由浅入深地对Prometheus进行了全方位的介绍,内容通俗易懂,理论与实践相结合。首先从监控体
《牛虻》内容简介:故事背景设定在19世纪40年代干电地利络治下的意大利,描写了意大利革命党人牛虻为争取民族解放而奋斗的一生。全
经典实例学设计-UG NX 10.0从入门到精通-(含1DVD) 本书特色 《经典实例学设计UG NX10.0从入门到精通》基于UGNX10.0中文版编写,共9...
《我为知识产权事业鼓与呼(修订版)》内容简介:本书收录了吴汉东老师在国内外不同场合的专题讲座、主题发言、演讲和访谈等口述作
《数字调制解调基础(双色)》是21世纪电子电气工程师系列之一,主要讲解IT技术中最关键、最基本的调制解调技术,内容深入浅出,通
谁读懂《未来》,谁就能赢得《未来》上海译文出版社独家中文版权诺贝尔和平奖得主、美国政商界巨擘、奥斯卡最佳纪录片奖得主、纽