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)
《这里是故宫》内容简介:只露声音的宫殿君称得上是行走的“故宫资料库”,他以特别“接地气”的方式讲述故宫的建筑黑科技、超级神
《学术论文写作与发表指南》内容简介:本书内容涵盖论文选题、论文写作、投稿技巧、期刊审稿等,适用于人文社会科学高校教师、硕博
《汉朝大历史》内容简介:汉朝何以成为与西罗马并立的两大帝国?汉朝的大一统局面是如何出现的?汉哀帝的断袖之癖,汉朝与四夷的战
《邓小平实录1:1904—1945》内容简介:本书由中央文献研究室专家倾力创作,在体例上按时间顺序编排,共分四卷十编,每一编又分为历
《JavaScript框架设计》内容简介:本书是一本全面讲解JavaScript框架设计的图书,详细地讲解了设计框架需要具备的知识,主要包括的
ThisbookcoverstheCherryPylibraryforPythonwebdevelopmentfromitshistoryandinstalla...
"TechnicsandCivilization"firstpresenteditscompellinghistoryofthemachineandcritic...
本书首先解释了AJAX为什么在大规模的开发中能有如此广阔的应用前景,接着系统地介绍了当前重要的AJAX技术和组件。你将看到把数据
《JavaScript入门经典(第4版)》对上一版本做了。全面更新,使JavaScript代码适用于最新版本的IE、Firefox和Safari浏览器。Java...
并行程序设计(第2版) 本书特色 本书系统介绍并行程序设计原理及应用。除介绍常用的一些算法范例,包括分治、流水、同步计算、主从及工作池,还介绍了一些常用的经典数...
《苏联与当代俄罗斯试验飞机》介绍了俄罗斯《苏联》所有类别的试验和研究飞机,包括发动机飞行试验台,如I0L—76LL。Tu—16LL;雷
《埃斯库罗斯悲剧六种》内容简介:一套《罗念生全集》,一座奥林匹斯山。最全面完整:《罗念生全集》增订典藏纪念版,凡十卷,凡52
《亨利·雷马克与比较文学关系研究》内容简介:亨利·雷马克是美籍德裔著名比较文学学者,文艺理论家。1961年他发表的《比较文学的
《二十四节气七十二候》内容简介:二十四节气七十二候不仅是一套关于时令、气候、物候变化规律的知识体系,更是属于中国人的时间哲
《齐善鸿讲道德经》内容简介:如何轻松学到《道德经》的精髓? 如何打破艰难晦涩的语句直达道学根本? 如何在生活和工作中运用《道
《养出元气满满的孩子》内容简介:《养出元气满满的孩子》主要围绕当下的国学教育展开,从传统文化视角讲述并剖析家庭教育、礼乐教
ATheoryofFunforGameDesignisnotyourtypicalhow-tobook.Itfeaturesanovelwayofteachin...
《简单高效LaTeX》内容简介:本书从解答为何要学习使用LaTeX谈起,以丰富的范例和简洁的语言,系统介绍了科学排版系统LaTeX的基础知
Photoshop专业抠图技法 本书特色 抠什么都不怕!半透明、不透明、动物、植物、人物,《Photoshop专业抠图技法》搞定一切图,绝对超高速。深入剖析了选...
《运动与职场人生》内容简介:本教材不把提高学生运动技能作为首要指导思想,而是更加注重体育的文化因素,以知识性、趣味性和可读