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)
《玩的就是调侃:打造你的金牌博客》按博客的主要内容,将纷繁复杂的博客群体划分为五大类,一一介绍,每章通过对该类博客总体情况
《管理者如何让人长期追随》内容简介:◆管理者如何让人长期追随!只需要躲开这21种低级错误! ◆一堂价值25万美金的管理课程! ◆
《高新科技知多少》内容简介:本书由重庆市科学技术协会、重庆市科学技术局和重庆市全民科学素质纲要实施工作办公室主编,是一本面
如何让你的iPad或者iPhone应用在AppStore中出类拔萃?许多书籍单纯从技术方面来探究苹果应用的设计和开发,而本书在探究这些问题
本书是一本西方国家图案图集。书中集结了当代最有天赋的50为设计师的手绘图案设计作品,并且展示了他们如何将这些手绘图案创新性
《云存储解析》详细介绍了云存储的由来、业务现状和技术现状,并在此基础上重点介绍了云存储的需求和应用、技术架构、关键技术、
由杜波依斯编著的《MySQL技术内幕(第4版)》介绍了MySQL的基础知识及其有别于其他数据库系统的独特功能,包括SQL的工作原理和My
《口才与演讲技巧:领导脱稿演讲与即兴发言》内容简介:本书将从演讲的内容、演讲姿态、演讲声音、演讲辅助工具等多个方面全面帮助
《个人发起型非营利组织研究》内容简介:本书讲了一个学术版的故事,其在一定理论框架下的叙事,呈现了一个由个人发起的非营利组织
《我曾与大海为邻》内容简介:1962年,一位21岁的小学老师响应党的号召,主动要求下放到农村,从人民教师变成公社社员。他来到渔村
Howdoyoudesignengagingapplicationsthatpeoplelovetouse?Thisbookdemonstratessevera...
移动互联时代,传统企业危机四起:不转型等死、转型怕转死!怎么办?怎么破?怎么转?APP设计与营销!!APP赋予传统行业新基因,
《零基础学PHP》主要内容:PHP是一种运行于服务器端并完全跨平台的嵌入式脚本编程语言,是目前开发各类Web应用的主流语言之一。P
精通UG NX5中文版-基础入门篇(附赠1CD.含4小时语音视频教学) 内容简介 全书共分14章,主要介绍了ug nx5的绘图命令、实体特征以及各项命令的操作与...
本书以Android手机应用程序开发为主题,通过130多个范例全面且深度地整合了手机、网络及服务等多个开发领域,为读者提高程序设计
高级数据结构 本书特色 《高级数据结构》在基本数据结构的基础上,围绕一些常用的高级数据结构,结合大量实战例题,深入分析“数据结构是如何服务于算法的”。内容包括:...
Focusingonthreeprincipalsystems-GPS,GALILEO,andGLONAS-thispracticalresourceprovi...
和孩子一起玩编程 本书特色 《和孩子一起玩编程》分成书和卡片两部分,卡片相当于书的图片版,是供不能独立阅读本书的孩子使用的,使用方式是家长看书来讲解,孩子看卡片...
Stringmatchingisaveryimportantsubjectinthewiderdomainoftextprocessing.Itconsists...
《黑洞》内容简介:1644年4月25日清晨,崇祯缢死煤山,李自成占领紫禁城。5月22日至27日,明军吴三桂部和满清联军,与李自成大战于