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)
Asthefirstbooktosharethenecessaryalgorithmsforcreatingcodetoexperimentwithdesign...
《梁庄十年》内容简介:2010年,《中国在梁庄》首次出版,向我们展现了一个急速变化的时代下的中国村庄的变迁。十年之后,作者梁鸿
《近代法律人的世界》内容简介:本书为中国社会科学院近代史研究所法律史研究群、华中科技大学近代法研究所、华东政法大学法律文明
ProductDescriptionDesigningInteractiveSystems:People,Activities,Contexts,Technol...
《信息系统项目管理师考试试题分类精解(第5版)》内容简介:本书由希赛教育软考学院组织编写,作为计算机技术与软件专业技术资格(
《网站分析实战:如何以数据驱动决策,提升网站价值》由王彦平、吴盛峰著。目前,越来越多的网站开始重视数据,并期望从中发现新的
《20世纪的中国乡村》内容简介:本书从四个部分,系统呈现20世纪中国乡村社会发展状况。第一部分,探讨中国近代社会史研究的历程、
本书简要介绍了Verilog硬件描述语言的基础知识,列举了大量实例,每个实例都经过精心选择,非常利于读者掌握Verilog硬件描述语言
《和秋叶一起学Word(第3版)》内容简介:Word、PPT、Excel,哪一个值得你花精力去学习? 我认为是Word,因为Word软件的使用频率高
《国学基础》内容简介:本书所谓“国学”主要是指中华优秀传统文化,所谓“国学基础”主要是指中华优秀传统文化的思想基础,所谓“
《与哲学家一起思考》内容简介:1. 本书为施太格缪勒(Wolfgang Stegmüller)获奖作品 2. 作者是德国哲学家恩斯特教授 3. 本书内容
《牢记使命:中国共产党为什么能砥砺奋进》内容简介:黄相怀著的《牢记使命:中国共产党为什么能砥砺奋进》紧扣党的十九大精神,以
《交互界面设计》是一本关于交互设计的入门读物。交互设计分为三个大的领域,分别是基于屏幕的界面设计、交互产品设计以及服务设
SincedevelopmentfirstbeganonSpringin2003,theresbeenaconstantbuzzaboutitinJavadev...
软件工程实践者的研究方法 本书特色 《软件工程实践者的研究方法》(原书第6版)自1982年发行第1版以来,一直受到软件工程界的高度重视,成为高等院校计算机相关专...
《瓜豆集》内容简介:《周作人自编集:瓜豆集》收录周作人一九三六年五月至十二月的作品。较之此前之作,内容上有些新的成分。正如
数字图像修复技术 本书特色 本书主要研究小尺度破损的图像修补(inpainting)技术和大尺度破损的图像补全(completion)技术及其相关应用。本书针对...
《JavaWeb开发实战宝典》从初学者的角度出发,通过通俗易懂的语言、丰富实用的实例,详细介绍了使用Java语言和开源框架进行Web程
本书采用程序员最爱用的面向对象C++语言来描述数据结构和算法,并把数据结构原理和算法分析技术有机地结合在一起,系统介绍了各种
《思无邪》内容简介:钟鼓声响起,民间的乐音比黄钟大吕更轻盈灵动,更适合不受拘束的爱情、和着钟鼓声一起起舞的两个人,一如清空