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)
《人生的每日忠告》内容简介:既然你热爱生活,就要爱它的。当满天的繁星落定,远处的歌声清灵地绽放,你询问手中的红莲,哪一朵光
XML基础教程 本书特色 XML是由万维网联盟定义的一种语言,是表示结构化数据的行业标准,使得Internet上的数据相互交流更方便,让文件的内容更加显而易懂。...
《大脑减压的子弹笔记法》内容简介:为什么风靡全球的子弹笔记,最终变成杂乱无章的待办清单? 为什么尝试过时间管理,最终还是回到
Windows 7使用详解 本书特色 《Windows 7 使用详解》由众多Windows技术专家倾力推荐。Windows 7使用详解 内容简介 本书由微软*有...
《不慌不忙,人生慢慢来》内容简介:这是一本写给都市迷茫女性的人生答案之书。当下世界变化太快,人很容易被快速变化的世界裹挟,
《做自己人生的CEO》内容简介:她从爱哭的职场小白到年轻CEO,只用了6年 她懂得“管理老板”,曾是财经大咖吴晓波器重的左膀右臂 对
《设计模式的艺术:软件开发人员内功修炼之道》内容简介:软件开发是一门技术,更是一门艺术。设计模式是面向对象软件开发的入门功
这是一本可以帮助想进入编程设计领域的设计者学习的手册。从内容上避免了对所有Grasshopper组件的详细解析,而将重点放在逐渐学习
《抖音电商从入门到精通》内容简介:本书从抖音电商角度出发,精心介绍了手机短视频5大核心内容:策划、拍摄、制作、引流与运营,具
《20世纪西方女装史经典图鉴(简体中文珍藏版)》以10年为一个附段,用绘图的表现方式,有代表性选取了20世纪各个时期的设计师服装
BeginningPHPandMySQL5:FromNovicetoProfessional,SecondEditionofferscomprehensivei...
《想清楚 说明白》内容简介:本书主题与每个普通职场人日常工作生活都密切相关,属于绝大多数职场白领想要提升的重要素质之一。对于
《Excel 2010办公应用实战从入门到精通(超值版)》内容简介:《Excel 2010办公应用实战从入门到精通(超值版)》通过精选案例引导
《地方政府的战略成长》内容简介:改革开放40年来,城市府际治理在区域经济社会发展与公共事务治理中起到了关键性推动作用。本书以
《块数据5.0:数据社会学的理论与方法》内容简介:块数据是贵阳发展大数据的理论创新和实践探索的产物,是大数据时代的解决方案。《
《漫画分镜头表现教程(第3版)》内容简介:本书共分5章,分别讲解分镜头概述、漫画分镜头表现、四格漫画分镜头表现、特殊分镜头技
《英语应该这样学!》内容简介:本书从英语学习的五大板块——发音、单词、语法、语感、习题——入手,逐一分析了中国英语学习者(
ThiscomprehensiveguideshowsyouhowtomasterthemostimportantchangestoJavasinceitwas...
《Drupal高手建站技术手册》全面、系统地介绍了当今最流行的开源内容管理系统Drupal的建站方法,不仅由浅入深地介绍了Drupal的基
#NAME?