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)
《R用户Python学习指南:数据科学方法》内容简介:掌握一门语言、一种工具已不足以应对当今的数据分析任务,本书旨在解决这一问题,
Risrapidlybecomingthestandardfordevelopingstatisticalsoftware,andRinaNutshellpro...
《边做边学深度强化学习》内容简介:本书最大的特点在于讲解深度强化学习算法时尽可能地做到化繁为简,书中没有复杂的符号逻辑,也
Asthefirstbooktosharethenecessaryalgorithmsforcreatingcodetoexperimentwithdesign...
《阅读的艺术》内容简介:阅读,不怕从零开始,只怕从未开始 《阅读的艺术》辑录了著名出版人、作家聂震宁的六十余篇关于阅读、书籍
结构弹塑性分析程序OpenSEES原理与实例 本书特色opensees是一个开源的弹塑性分析程序,它有很多未商业化仍在研究阶段的算法、单元及材料本构。opens...
《HTML+CSS网页设计与布局从入门到精通》紧密围绕网页设计师在制作网页过程中的实际需要和应该掌握的技术,全面介绍了使用HTML和
《区块链原理、设计与应用》内容简介:本书由超级账本核心设计和开发者撰写,是区块链开发落地专业指南。由浅入深,系统化介绍超级
物联网概览以及联网装置设计原则因特网原理原型设计与制作及具体案例介绍物联网装置涉及的编程技术物联网产品商业模式制造阶段可
《团体心理游戏256例》内容简介:心理游戏是一种在团体情境中提供心理帮助与指导的重要方式,它是通过团体内人际交互,促使个体在人
《Oracle9i&10g编程艺术:深入数据库体系结构》是讲述Oracle数据库公证的权威指南,凝聚了世界顶尖的Oracle专家ThomasKyte数十年的
《编程珠玑》第一版是我早期职业生涯中阅读过的对我影响较大的书籍之一,在书中首次接触到的很多观点都让我长期受益。作者在这一
【内容介绍】本书以一个实战者的身份,全面阐述了在互联网时代直销业发生的种种变化。书中的大量案例和资料,并不是来自作者的凭
《潮剧史话》内容简介:潮剧是以潮州方言演唱的地方戏曲剧种,属于宋元南戏的一支,诞生于古潮州,曾有潮泉调、潮腔、潮调、潮音戏
《现代通信系统》(MATLAB版)(第2版)提供了利用MATLAB在计算机上解决“现代通信系统”课程中涉及的各方面问题的分析思路、方法、M
《世界航空发动机手册》共分为4个部分。主体部分有:涡轮风扇发动机、涡轮喷气发动机、涡轮轴/涡轮螺旋桨发动机、桨扇发动机、活
《LTE:UMTS长期演进理论与实践》系统、深入、全面地介绍了LTE的背景、动因和技术内容,涵盖了基本理论基础、物理层技术设计、网络
《工业设计心理学》针对传统工业设计以技术为本和以机器为本所带来的种种弊端,详细阐述了以人为本的设计思想和方法,以期推动国
◎台灣第一本以專業角度探討暗網以及網路非法社群次文化等的書籍◎亞馬遜好評4.3顆星、美國國家公共廣播電台(NPR)2015年度最佳
《埃斯库罗斯悲剧六种》内容简介:一套《罗念生全集》,一座奥林匹斯山。最全面完整:《罗念生全集》增订典藏纪念版,凡十卷,凡52