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)
《大河两岸》内容简介:在肯尼亚一条大河的两岸各有一座村子。主人公瓦伊亚吉的父亲是氏族里的先知,预见到白人即将得势,便把他送
InTheSemioticEngineeringofHuman-ComputerInteraction,ClarisseSieckeniusdeSouzapro...
《数字媒体艺术史》是《数字媒体艺术概论》的姊妹篇,是一本通过全新视角论述当代数字媒体艺术发展史的教材,也是一本引导学生理
围绕如何实现高效调试这一主题,本书深入系统地介绍了以调试器为核心的各种软件调试技术。本书共30章,分为6篇。第1篇介绍了软件
《揭秘》内容简介:本书从软件工业的角度,系统论述了物联网技术及其实现方案。本书共分两部分,第一部分(第一章至第十三章)介绍
MSC Adams多体动力学仿真基础与实例解析-(赠1DVD) 本书特色 《mscadams多体动力学仿真基础与实例解析(附光盘)/万水msc技术丛书...
《设计元素》是一本供学生和设计者学习的参考书。作为一本设计的启蒙读物,它包含了制作各种简单形体及创造复杂方法去解决困难的
《野地灵光:我住精神病院的日子》内容简介:身患重度抑郁症十余年的作家李兰妮,终于下决心住进了精神病院。本书记录了作者住院治
MoreExceptionalC++是ExceptionalC++的续篇。根据多年程序开发的实践经验、HerbSutter向C++程序员提供了久经考验的程序设计...
《SoftwareDesign中文版03》的主题为:sed/AWK入门和Mac开发环境。特辑1详细讲解了sed与AWK的基础与使用方法、日志分析、ShellSc
S4A互动程序设计 本书特色 S4A(Scratch for Arduino)是一款由西班牙的Citilab团队在Scratch基础上开发而成的软件,它趣味性强...
《思想的传承与决裂:以 “犹太人问题”为中心的考察》内容简介:在马克思早期思想演变中,青年黑格尔派是一个非常重要的思想背景和
《孟子讲座》内容简介:孟子是孔子之后的儒学大师,在战国中期继承孔子思想学说并把儒学发展到新的阶段,被奉为“亚圣”。本书是作
《让学生快乐表达之行动研究》内容简介:2016年,世界教育创新峰会(WISE)与北京师范大学中国教育创新研究院共同发布了《面向未来
《赚在起跑线》内容简介:股市里,为什么有人成了赢家,有人却是输家?作者认为差别是由股民在五大问题上不同的认知所造成的:如何
LetOverLambdaisoneofthemosthardcorecomputerprogrammingbooksoutthere.Startingwith...
《FBI心理操控术》内容简介:在实际办案中,FBI会把心理操控术作为必须掌握的心理课程,FBI认为,运用“心理操控术”,用眼睛洞察一
《刀与星辰》内容简介:徐皓峰影评集。书中从颇受瞩目的大制作《卧虎藏龙》《赤壁》《十面埋伏》,到独具风格的《放·逐》《春夏秋
《可解释机器学习:黑盒模型可解释性理解指南》内容简介:机器学习虽然对改进产品性能和推进研究有很大的潜力,但无法对它们的预测
群体智能是近年来发展迅速的人工智能学科领域.通过研究分散,自组织的动物群体和人类社会的智能行为,学者们提出了许多迥异于传统思