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)
《新手学:黑客攻防(入门篇)(超值实用版)》共11章。第1章介绍黑客的基础知识,包括黑客入侵的途径、入侵命令以及入侵的方式。第2章
计算机程序设计艺术第1卷第1册(双语版) 内容简介 关于算法分析的这多卷论著已经长期被公认为经典计算机科学的定义性描述。迄今已出版的完整的三卷已经组成了程序设计...
本书是一本经典的人工智能教材。全面系统地阐述了人工智能的基础理论,有效结合了求解智能问题的数据结构以及实现的算法,把人工
《白鹭在冰面上站着》内容简介:无论被叫作香格里拉,还是勐巴拉西,云南都是“人间天堂”的意思。在雷平阳眼里,云南是他的文学诞
《思维导图:提升你的职场核心竞争力》内容简介:思维导图法就是一种生活的心法及技法,运用思维导图法,就像金庸小说里的张无忌学
半结构化数据管理关键算法研究与实证 内容简介在云计算和物联网等新兴信息技术高速发展的今天,由于半结构化数据具有灵活易扩展的存储结构,已被许多信息系统和应用作为公...
《每晚睡前原谅所有的人和事》内容简介:每晚入睡前,想着一天的劳累和辛苦,想着过往几十年的辛酸与不易,想着那些我们曾经错过和
PraisefortheSecondEdition:"Seriousresearchersincombinatoricsoralgorithmdesignwil...
Inapost-9/11world,thepresentisasunpredictableasanyfuture...Paidtopredictthehotte...
《张洁文集·散文随笔卷》内容简介:《散文随笔卷》在阅读过程中不仅能品味这些佳作的散文随笔卷思想性、艺术性,而且还能从中明白
本书是C++模板编程的完全指南,旨在通过基本概念、常用技巧和应用实例3方面的有用资料,为读者打下C++模板知识的坚实基础。全书共
CarloM.Cipolla(August15,1922–September5,2000)wasanItalianeconomichistorian.Hewas...
《唐诗分类品赏》内容简介:古典诗词鉴赏名家李元洛先生以今人视角依不同题材精选唐诗三百余首,分为自然、社会、人生与艺术四大篇
《拯救社交脸盲症》内容简介:本书是一部激励心灵的励志作品,本书主要通过社交心理学、社交技巧学、社交口才学等诸多成功要素,深
ProductDescriptionLearnhowtocreategorgeousandexpressiveimagerywiththeProcessingp...
亿万人在万维网上的各种活动,尽管是随机发生、随意展开、无人协调,但显现出了一些有趣的特征与明显的模式:从网络信息的结构,
《UML和模式应用(原书第3版)》英文版面世以来,广受业界专家和读者的好评,历经3个版本的锤炼,吸收了大量OOA,D的精华思想和现代
运动人体行为语义计算技术 内容简介 《运动人体行为语义计算技术》主要介绍了运动人体行为的语义计算方法,包括:基于Beowulf机群中改进的粒子滤波的3D人体运动...
《Python Django Web典型模块开发实战》内容简介:Django是基于Python编程语言的三大网站框架之一,是一门需要以实践经验来巩固和提
《民法总则:具体与抽象》内容简介:既有民法总则本体的介绍和阐释,也有民法与宪法、商法、知识产权法、行政法、民事诉讼法之间关