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)
《索尼微单摄影宝典:相机设置+拍摄技法+场景实战+后期处理》内容简介:本书是专门为索尼微单用户编写的一本相机使用与实拍技法宝典
《小公司财税管控全案》内容简介:本书结合企业财税政策,通过系统的财税管理与控制方案让企业尤其是中小企业财务管理摆脱无顶层设
《门岭怪谈》内容简介:深夜两点整,暴雨不期而至,一行人在高速公路上迷失方向,偶然走进一间荒村旅店。命运的巨眼在黑雾中缓缓睁
《Photoshop CS6中文版图像处理实战从入门到精通》内容简介:本书以循序渐进的讲解方式,引领读者快速掌握Photoshop CS6的操作技能
《若到江南赶上春》内容简介:本书是吴浩然漫画作品的合集,每幅画作配以简短文字阐述画面,延续丰子恺轻松、风雅、有趣的风格,展
《工业X.0》内容简介:数字化的巨轮早已扬帆远航,任何持怀疑态度的人都无力阻止,无论是民众还是商业领袖。工业企业整体构成了全球
随着越来越多的第三方语言(Groovy、Scala、JRuby等)在Java虚拟机上运行,Java也俨然成为了一个充满活力的生态圈。《实战Java虚
《邻里杂货:澳门士多店主口述历史》内容简介:本书为“澳门口述历史丛书”之一,主要由对十一位澳门士多店主的访谈整理而成。他们
ThisbookcoverstheCherryPylibraryforPythonwebdevelopmentfromitshistoryandinstalla...
《中山风雨话沧桑:1937~1947年河北省定(北)县党的建设及革命斗争追忆》内容简介:这是一部百岁老人刻骨铭心的回忆。它从独特的
本书从生物进化论、传播学、社会学、科学、经济学和哲学的角度,全方位预测了互联网将给人类未来的文化、科技和经济带来的深刻变
苹果热门产品“i”系列的创意鼻祖乔布斯御用17年的广告狂人一旦做到了简洁,你将无所不能。——史蒂夫·乔布斯对史蒂夫·乔布斯来
市場競爭激烈,品質、價格已無分軒輊……風格變成最大的賣點。──VirginiaPostrel,”TheSubstanceofStyle”日本人不僅擅於創造風
ShawnWelch编著的《iOSApp界面设计创意与实践》介绍如何将这些让人感到兴奋的创意原型,融入到真实的App之中。包括iOS入门、iOS用
《走过星空遇到黑洞》内容简介:系列教材分为萌芽班、初级班、中级班和高级班四个阶层。中级班的内容主要是提高学生们对天文学知识
《大盘时代:中国泛地产革命》内容简介:1999年,一条从广州南直通番禺的华南快速干线将普通的岭南小镇南村,变成了中国房地产史上
《Flutter开发实战详解》内容简介:《Flutter开发实战详解》以实战为导向,由浅入深地介绍了Flutter开发过程中的基础体系、实战技巧
Theincreasinglycommonuseoffast-speedInternetconnectionsoverthepastfewyearshascon...
《苏东坡传:诗酒趁年华,烟雨任平生》内容简介:大文豪、美食家、工程师…… 乐天派、真性情、热心肠…… 苏东坡的一生标签很多,
《房地产经纪操作实务》内容简介:刘志东主编的《房地产经纪操作实务》一书是根据中华人民共和国住房和城乡建设。部委托中国房地产