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)
如何让你的iPad或者iPhone应用在AppStore中出类拔萃?许多书籍单纯从技术方面来探究苹果应用的设计和开发,而本书在探究这些问题
《大话存储2:存储系统架构与底层原理极限剖析》内容简介:网络存储是一个涉及计算机硬件以及网络协议/技术、操作系统以及专业软件
Thisbookaddressestheunderlyingfoundationalelements,boththeoreticalandmethodologi...
本书语言清晰明了,将设计准则与其核心的认知学和感知科学高度统一起来,使得设计准则更容易地在具体环境中得到应用。涵盖了交互
《马克笔萌宠绘》内容简介:本书是一本讲解如何用马克笔画出特别又有趣的萌宠画教程。全书共有5章:第1章为马克笔绘画基础知识,不
在线阅读本书NowinitsFourthEdition,thisunrivaled,seminalworkcontinuesitslongtraditionof...
《愿你成为最好的女子(经典版)》内容简介:不可爱的缺点;既能看到美好的一面,也充满自省、努力成为更好的女子的启示。女人,要
OWASP是一个开源的、非盈利的全球性安全组织,致力于应用软件的安全研究,在业界具有一流的影响力和**性。作为OWASP面向中国的区
本书系统地介绍了CSS样式的基础理论和实际应用技术,并结合实例来介绍使用Div+CSS布局制作网页的方法和技巧。在介绍使用CSS样式进
《逍遥游(绘本版)》内容简介:《逍遥游》是战国时期哲学家、文学家庄子的代表作,无论在艺术上还是思想上均可视为《庄子》一书的
Whetheryouareaprofessionalnewtotheuser-centereddesignfield,oranexperienceddesign...
《给孩子的幸福力1》内容简介:在孩子成长的道路上,我们给予他们太多的关注和爱,却常常忘了告诉他们,成长是一件多么美好的事情;
《Neo4j 3.x入门经典》内容简介:Neo4j是一个高性能的NoSQL图数据库,将结构化数据存储在拓扑图上而不是表中,从而轻松地管理巨量的
《ODL技术内幕:架构设计与实现原理》内容简介:这是一本从源代码层面深入剖析ODL的著作,旨在帮助读者在透彻理解ODL的先进架构、设
风格就是这个人本身-Buffon布冯Styleisthephysiognomyofthemind。风格就是心灵的脸容-ArthurSchopenhauer叔本华...
《做自己的保险规划师》内容简介:本书分为八章,每章围绕一个主题,以通俗易懂的写作方式,为读者提供了实用且清晰的保险规划建议
《擦一擦镜子,照见童年》内容简介:本书以回忆六、七十年代童年趣事为内容:1、通过不同的季节、空间,描绘当时的童年生活变化,及
《天使的号角》内容简介:一个新的杀手正在行动—— 凶手的犯罪手段令人不寒而栗。他蛰伏在阴暗潮湿的地下室和纽约市的地下通道,用
《WINDOWS游戏编程大师技巧》(第2版)介绍了在Windows环境下进行游戏编程所需用到的各方面知识,作者是著名的游戏开发大师AndrèL
《股民的眼泪》内容简介:股市惨淡,跌跌不休,不少股民暗自垂泪,究竟如何避开股市的地雷? 张化桥继续敢言作风,在新作中大胆揭示