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)
《嵌入式系统软硬件协同设计实战指南》内容简介:本书由浅入深,由基础知识到实战案例向读者系统阐述了如何利用Zynq平台进行嵌入式
《桃花扇》内容简介:本书写明末复社名士侯方域与秦淮名妓李香君相恋,阉党余孽阮大铖企图笼络侯方域,因李香君的反对而没能得逞,
《小顾聊绘画(壹)》内容简介:梵高、莫奈等9位艺术大家的人生长廊,高清原彩画作,妙趣横生的艺术解读! 艺术没有那么高不可攀!
MobileInteractionDesignshiftsthedesignperspectiveawayfromthetechnologyandconcent...
Photoshop CC从入门到精通 本书特色 本书是一本全面、细致地介绍photoshop cc 使用的图书,针对初学者,循序渐进、从易到难,逐步攻破知识难点...
《STM32开发实战:LabVIEW卷》内容简介:作为学习LabVIEW与32位微处理器STM32的入门级教材,本书从LabVIEWforARM嵌入式软件架构入...
《中等职业学校电子与信息技术专业课程标准汇编(上)》内容简介:本书是根据《教育部人力资源和社会保障部财政部关于实施国家中等
五笔字型速查字典 本书特色 《五笔字型速查字典》适合广大计算机初学者、企业文秘人员及专业文字录入人员等使用。五笔字型速查字典 内容简介 本字典列出了6763个国...
《揭秘Web应用程序攻击技术》适合所有热爱网络安全的人们,尤其是高等院校计算机专业的学生。同时,《揭秘Web应用程序攻击技术》
《信号与系统(上册)(第2版)》是1981年出版《信号与系统》(高等教育出版社出版)的修订版。本版与第一版的结构层次大体相同,仍然
《Python青少年趣味编程》内容简介:Python是现在非常流行的计算机编程语言,它功能强大,应用场景广泛,但其语言却简洁,非常适合
Linux系统管理技术手册-(第二版)(英文版) 本书特色 自从2001年《Linux系统管理技术手册》一书问世以来,对于每一位必须有效解决各类技术问题,努力让...
《客户关系管理》内容简介:王广宇所著的《客户关系管理(第3版)》是客户关系管理(CustomerRelationshipManagement,CRM)研究领
《美国的故事(套装书共7册)》内容简介:本书聚焦于美国建国前后的激情岁月。从北美殖民地的建立,到独立战争的打响,再到美国前几
J2EE是当今可用于企业软件开发的最佳平台。本书的目标是让读者能够轻松自如地制定J2EE开发的体系结构决策与实现决策。内容涉及:
《中国哲学通史(先秦卷)》内容简介:哲学在中国作为一个独立自觉的学科创立以来,已历百年,本书力图揭示中国哲学之不同于西方哲
《乐迷闲话》内容简介:《乐迷闲话》作为辛丰年的第一本音乐随笔著作,曾经启蒙了一代西方古典音乐乐迷。虽是“闲话”,其实“有根
《版式设计基础教程》从“什么是版式设计”开始讲解为什么要进行版式设计,版式设计的基本要素、分类以及文字排列的基本方式。除
《旅行人信札》内容简介:这些是1981年旅行时寄给北京亲友的信。我哥哥嘉曜极喜欢这些信,说要发表。他不是出版家,说说罢了。1993
WhileWeb2.0wasaboutdata,Web3.0isaboutknowledgeandinformation.ScriptingIntelligen...