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)
五笔打字轻松掌握 本书特色 本书是学习五笔字型打字的基础教材,书中详细地介绍了初学者必须掌握的基本知识、使用方法和操作步骤,并对初学者在使用五笔字型打字时经常碰...
本书结合应用介绍了PHP+MySQL构建Web系统的技术,并附有大量代码实例。全书共24章,分为4个部分:使用PHP、走进MySQL、典型模块和
《Excel VBA应用与技巧大全》内容简介:Excel是应用最广泛的办公软件之一,它大大提高了办公人员的工作效率。但是各行各业的办公需
手感設計之所以會成為日本設計的特色,就在於日本人將設計不只是視之為功能的詮釋品而已。設計代表了文化、便利生活的器具、成為
纠错码是一门新的差错控制技术,目前已广泛应用于各种通信系统和计算机系统中。王新梅和肖国镇编著的《21世纪高等学校通信类系列
《GDI+图形程序设计》GDI+是新一代的图形接口。如果要设计.NETFramework图形应用程序,就必须使用GDI+。《GDI+图形程序设计》是一
如果不是「包浩斯」,世界不是你眼中所見的樣子最前衛的藝術設計學校最前衛的藝術設計運動最經典.最普及的「包浩斯」論著英、美
《古画的故事(中华文化故事)》内容简介:《古画的故事》以时间为序,精选从石器时期代到11世纪之前的58幅经典绘画作品,既有彩陶
《内容电商》内容简介:本书全面介绍了内容电商及内容电商各模块的具体内容。全书共分7章,第1章重点介绍内容电商的相关概念,其中
实验与习题解答-微型计算机原理及应用(第二版) 本书特色 “微型计算机原理及应用”是高等学校工科电类各专业,特别是计算机应用专业大学生必修的一门专业基础课,目的...
《家屋与嘉绒藏族社会结构》内容简介:本书根据对中国四川省雅安市宝兴县硗碛藏族乡的田野调查资料,以家屋的名号“房名”的研究为
《元宇宙超入门》内容简介:我们每天都在数字化生活之中。元宇宙,是数字化经济与生活的终极形态。元宇宙=实体世界数字世界。临界点
BeginningPHPandMySQL5:FromNovicetoProfessional,SecondEditionofferscomprehensivei...
欢迎您选择一种更高效的学习HTML和CSS的方式。不管您设计和建立新网站,还是想更好地控制现有网站,都可以在《HTML&CSS设计与构建
《雏菊与稚鸟》内容简介:本书内容精选自插画师那仁多年来的插画作品,书中有恬静的少女、可爱的动物、美丽的植物,以及生活中的小
《一千零一夜》内容简介:《一千零一夜》又名《天方夜谭》,是阿拉伯民间故事集。相传国王山鲁亚尔痛恨王后与人有私,将其杀死,此
《个人发起型非营利组织研究》内容简介:本书讲了一个学术版的故事,其在一定理论框架下的叙事,呈现了一个由个人发起的非营利组织
Webusersaregettingtiredofthetraditionalwebexperience.Theygetfrustratedlosingthei...
Presentsthefundamentalprinciplesforcombiningthecomponentsintosuccessfulfixtures....
《自由的人》内容简介:本书是以梁实秋、林语堂为代表的众多亲历者,对中国近现代史上四位极具争议性的文人——徐志摩、郁达夫、闻