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)
本书首先解释了AJAX为什么在大规模的开发中能有如此广阔的应用前景,接着系统地介绍了当前重要的AJAX技术和组件。你将看到把数据
《小学主题式综合活动课程案例选编》内容简介:本书是上海市开展小学主题式综合活动课程研究和实施工作以来汇总的首个学校案例集。
在线阅读本书Innetworkdesign,thegapbetweentheoryandpracticeiswoefullybroad.Thisbooknarr...
《会话式AI:自然语言处理与人机交互》内容简介:本书从逻辑上看分为三大部分。第一部分(第1~2章)介绍语言理解的基础概念与环境
《人是选出来的》内容简介:自古以来,用人问题一直是所有组织中的领导者的重要问题,甚至可能是关键性问题。该怎么选人?选什么人
《人机交互》是学习人机交互课程的教材,介绍了人机交互的发展历史、人机交互技术、交互设备、交互系统设计方法及交互系统评估等
会声会影应用宝典-中文版-随书赠送DVD 本书特色 本书是一本会声会影x7 学习宝典,全书通过310 多个实战案例,以及350 多分钟全程同步语音教学视频,...
本报告在《创新2050:科学技术与中国的未来》科技发展路线图和学科发展研究的基础上,前瞻未来10年世界科技发展,提出在一些重要
BookDescriptionBuildinteractiveWebapplicationswithAjaxCreatelivesearchesandonlin...
冯登国(FENGDengguo,1965.5~),现为中国科学院软件所研究员、博士生导师,信息安全国家重点实验室主任,国家计算机网络入侵防范中
智能视频图像处理技术与应用 内容简介 《智能视频图像处理技术与应用》在全面综述国内外视频图像的检测、增强、跟踪等技术的基础上,重点介绍了作者在这一领域的研究成果...
《探索的历程》内容简介:本书为《许成钢文集》的第一卷,其中多数是曾发表于媒体的非学术和半学术的文章,面向对社会科学有兴趣的
《矛与盾:黑客攻防命令大曝光》内容简介:《矛与盾:黑客攻防命令大曝光》紧紧围绕黑客命令与实际应用展开,在剖析黑客入侵中用户
《Unity虚拟现实开发实战(原书第2版)》内容简介:本书通过基于项目的实践方式,详细讲解如何使用Unity 3D游戏引擎进行虚拟现实开
《数字抑郁时代》内容简介:你不经意间养成的习惯,背后都是高科技的老谋深算 慕尼黑大学心理学教授教你认清套路,看穿隐藏在数字技
《C++语言从入门到精通:视频实战版》内容简介:《Visual C++从入门到精通(视频实战版)》详细介绍了使用VC进行C++程序设计的技巧,
《绘画高手这样画·素描静物》内容简介:书中分为3个部分,第1章节为基础知识章节;第二章节为物体质感的绘制章节;第三章节绘画高
《奥运中的科技之光》涉及体育科技的方方面面,包括时间与距离的检测,球的旋转与球在空气中的阻力与轨迹问题,跳水运动与身体旋
《成年人居家科学健身方法指导》内容简介:《成年人居家科学健身方法指导》由国家体育总局体育科学研究所的健身专家倾力打造,书中
在1955-1968年乌尔姆设计学院办学期间,没有人能预料到这所规模不大、位置偏僻且历史短暂的学校,会有如此大的影响力。乌尔姆设计