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)
用户界面设计:有效的人机交互策略(第五版),ISBN:9787121128929,作者:(美)施耐德曼,(美)普莱萨特著,张国印等译目录
《微说论语》内容简介:《论语》是儒家经典著作,古人云的时代已经过去,但古人对话中的内涵却一直对我们有着深刻的影响。如何将知
《断瘾》内容简介:本书作者银子是一名资深的心理医生,她长期从事青少年网瘾及教育方面的咨询和治疗,具有丰富的临床经验。在书中
地理信息系统数据库-第二版 本书特色 《地理信息系统数据库(第2版)》详细论述了地理信息系统数据库的基本理论、技术方法、实践应用、*新理论与发展趋势。内容全面、...
Ifyouveusedamoretraditionalobject-orientedlanguage,suchasC++orJava,JavaScriptpro...
《你不必讨全世界的欢心》内容简介:知乎人气情感一姐菠菜 且做一个久处不厌的女人 在知乎她被280000人关注;文章80000000 次阅读
《粘土手办基础教程》内容简介:有没有想过把绘画书中的经典人物形象做成一个栩栩如生的人物模型收藏起来?其实一点也不难!翻开这
Thestudyoftypesystemsforprogramminglanguagesnowtouchesmanyareasofcomputerscience...
《色彩感知学》内容简介:色彩学习从视觉上论证客观事实与主观感受之间的落差——观看的心理因素。是关于“看”的哲学和心理学。
《汽车维修电工实战28天》内容简介:本书主要讲解汽车维修电工入门的相关知识及操作技能,内容包括汽车维修电工入门,汽车电源系统
《马勒别墅的故事》内容简介:马勒别墅坐落于上海市陕西南路30号,1927年修建,1936年竣工,主建筑呈现斯堪的那维亚挪威风格,犹如
《激活自愈力:做自己的健康管理师》内容简介:本书纠正了目前大部分人群将健康交付于医生和药物的现象和思维模式,从而忽略了自己
《色彩心理探析》为那些有志于从事色彩学习的人士以及色彩专业人士提供专业指导,使他们懂得在实际工作中如何应用色彩形象体系,
《新编会计业务从入门到精通》内容简介:《新编会计业务从入门到精通》以《会计法》《企业会计准则》以及各项财经法规的规定等为依
《数字化转型百问(第一辑)》内容简介:1.内容概要及特色:《数字化转型百问》(辑)从什么是数字化转型、为什么数字化转型、数字
《新媒体艺术》由林迅所著,从理论阐述和详尽的案例分析两方面对“新媒体艺术”进行了深入研究与介绍,在对“新媒体艺术”立论的
《基于Selenium WebDriver和Cucumber》内容简介:从目前主流的Web自动化测试工具入手,由浅入深、全面、细致地阐述了如何使用开源测
重构 改善既有代码的设计 本书特色本书清晰揭示了重构的过程,解释了重构的原理和*佳实践方式,并给出了何时以及何地应该开始挖掘代码以求改善。书中给出了70 多个可...
JeffreyZeldman是世界上最知名的网站设计师之一。他的个人站点(www.zeldman.com)受到1600万访问者的欢迎,每天都有来自Web设计
《奚氏武术集粹》内容简介:本书是杭州武术协会顾问吴维叔整理的著名武术家奚诚甫的武术精粹集合。奚诚甫学贯少林、太极、八卦、形