Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
CoffeeScript
Table of Contents
What readers are saying about CoffeeScript: Accelerated JavaScript Development
Foreword
Acknowledgments
Preface
The New Kid in Town
Who This Book Is For
How This Book Is Organized
About the Example Project: 5x5
The CoffeeScript Community
Chapter 1: Getting Started
1.1 Installing CoffeeScript
1.2 Text Editors for CoffeeScript
1.3 Meet ’coffee’
1.4 Debugging CoffeeScript
1.5 Ready to Roll!
Chapter 2: Functions, Scope, and Context
2.1 Functions 101
2.2 Scope: Where You See ’Em
2.3 Context (or, “What Is ’this’?”)
2.4 Property Arguments (@arg)
2.5 Default Arguments (arg =)
2.6 Splats (...)
2.7 Project: 5x5 Input Parser
2.8 You’ve Done Well, Young Padawan
2.9 Exercises
Chapter 3: Collections and Iteration
3.1 Objects as Hashes
3.2 Arrays
3.3 Iterating over Collections
3.4 Conditional Iteration
3.5 Comprehensions
3.6 Pattern Matching (or, Destructuring Assignment)
3.7 Project: 5x5 Solitaire
3.8 Beyond the Basics
3.9 Exercises
Chapter 4: Modules and Classes
4.1 Modules: Splitting Up Apps
4.2 The Power of Prototypes
4.3 Classes: Functions with Prototypes
4.4 Inheritance with ’extends’
4.5 Project: Refactoring 5x5
4.6 Just a Spoonful of Sugar
4.7 Exercises
Chapter 5: Web Interactivity with jQuery
5.1 The Tao of jQuery
5.2 Manipulating the DOM
5.3 Getting Selective
5.4 Reacting to Events
5.5 Project: Browser-Based 5x5
5.6 The Future Is jQueryfied
5.7 Exercises
Chapter 6: Server-Side Apps with Node.js
6.1 What Is Node.js?
6.2 Modularizing Code with ’exports’ and ’require’
6.3 Thinking Asynchronously
6.4 Project: Multiplayer 5x5
6.5 Client, Server—What’s the Difference?
6.6 Exercises
Appendix 1: Answers to Exercises
A1.1 Functions, Scope, and Context
A1.2 Collections and Iteration
A1.3 Modules and Classes
A1.4 Web Interactivity with jQuery
A1.5 Server-Side Apps with Node.js
Appendix 2: Ways of Running CoffeeScript
A2.1 Web Consoles
A2.2 Running CoffeeScript in Your Web App
A2.3 CoffeeScript on Rails
A2.4 CoffeeScript via Middleware
A2.5 CoffeeScript on Node.js
A2.6 Rapid Websites with Middleman
A2.7 CoffeeScript for System Scripts
Appendix 3: Cheat Sheet for JavaScripters
A3.1 Boolean Operators
A3.2 The Existential Operator
A3.3 Context and Prototype Accessors
A3.4 Function Definitions
A3.5 Conditionals
A3.6 Property Existence
A3.7 Iteration
Appendix 4: Bibliography
You May Be Interested In…
← Prev
Back
Next →
← Prev
Back
Next →