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)
《可穿戴医疗——移动医疗新浪潮》内容简介:可穿戴设备作为互联网下一阶段的智能载体,已经开始进入人们生活的方方面面,特别是在
《Web标准实践:Web设计的整体方法》以关注Web标准的方式来介绍Web前端设计和开发。通过阅读和练习帮助读者理解互联网基础知识、
《图像处理、分析与机器视觉(第3版)》是为计算机专业图像处理、图像分析和机器视觉课程编写的教材。《图像处理、分析与机器视觉(
《了不起的中华服饰:壮族》内容简介:本书是一套“民族文化启蒙”的通俗百科类童书,以精心绘制的插图,通俗有趣的文字,讲述了中
《通信十年》内容简介:《通信十年:拥抱互联网》从人才、资源、创新三个维度,通过多年的连续新闻报道,试图阐释此前中国电信运营
《黑客(二十五周年新版)》内容简介:黑客文化和伦理的奠基之作,计算机专业人士必读。二十五周年新版,涵盖比尔·盖茨、马克·扎
《革新:科技改变生活》内容简介:飞行汽车、宇宙开发、量子计算机、共享汽车、大数据分析、替代白领工作的软件机器人、癌症治疗…
《赢单罗盘训战手册》内容简介:移动互联时代,大客户销售环境日趋复杂,局面扑朔迷离,竞争异常激烈,赢单愈加艰辛。本书指导如何
数据库系统工程师教程 本书特色 《全国计算机技术与软件专业技术资格(水平)考试教学用书:数据库系统工程师教程》:全国计算机技术与软件专业技术资格(水平)考试作为...
基于云计算的地学数据集成与应用 内容简介 为了解决地学领域多源、异构、分散、多维数据集成与应用问题,本著作系统深入地研究了采用云计算的SOA框架实现地学空间数据...
Whyhasthedurablepapershoppingbagbeenlargelyreplacedbyitsflimsyplasticcounterpart...
NicholasC.Zakas是一名前端开发顾问、作者和演讲家。在Yahoo!供职超过5年时间,在这期间他曾是Yahoo!首页首席前端工程师和YUI库
内容简介Spring3.0是Spring在积蓄了3年之久后,隆重推出的一个重大升级版本,进一步加强了Spring作为Java领域第一开源平台的翘楚
《没什么难的HTML5完全自学手册》内容简介:本书作为HTML5网页开发语言的教程,系统地介绍了HTML5的相关知识点。全书共12章,从HTM
BookDescription"ABriefHistoryofTime",publishedin1988,hasbeenalandmarkvolumeinsci...
本书从2001年世界电信业的那场危机谈起,解读了电信行业领先者成国的奥秘,探寻了成功的电信市场进入战略,调查了良好合作的真相
学习、构思、创造、让色彩呈现生命,传达一种体验,这便这部书的一个概况。这本书恰恰处在两个世纪历史的一个转折阶段。在这个阶
Sincetheturnofthetwentiethcentury,telecommunicationshasshiftedfromtraditionalvoi...
《超级搜索术》内容简介:如何报高考志愿?要不要现在换工作?如何租房?要不要现在买房?如何快速获得行业报告?如何判断药是否对
《构图之本(风光摄影四部曲)》内容简介:任何风光摄影师要想拍好风光,都必须学习和谙熟构图知识。高觉著的《构图之本》从风光拍