CoffeeScript Programming with jQuery, Rails, and Node.js

Get more fun and productivity out of your web development by learning CoffeeScript. This book is the perfect primer that takes you from language basics to creating responsive applications. Enjoy.
Preview in Mapt

CoffeeScript Programming with jQuery, Rails, and Node.js

Michael Erasmus

1 customer reviews
Get more fun and productivity out of your web development by learning CoffeeScript. This book is the perfect primer that takes you from language basics to creating responsive applications. Enjoy.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.50
RRP $14.99
Save 29%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.50
$29.99
$29.99p/m after trial
RRP $14.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


CoffeeScript Programming with jQuery, Rails, and Node.js Book Cover
CoffeeScript Programming with jQuery, Rails, and Node.js
$ 14.99
$ 10.50
Building Web Apps with jQuery, JavaScript and Bootstrap [Video] Book Cover
Building Web Apps with jQuery, JavaScript and Bootstrap [Video]
$ 124.99
$ 106.25
Buy 2 for $28.00
Save $111.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781849519588
Paperback140 pages

Book Description

CoffeeScript is a young but popular language that makes web programming fun and more productive. It compiles to JavaScript and unleashes its powerful features while not straying too far from the language. It’s become one of the most popular languages on Github and is being used for both browser and server side programming.

"CoffeeScript programming with jQuery, Rails, and Node.js" will not only teach you the CoffeeScript language but also show you how it’s being used by professional programmers with the latest web technologies.

This book will teach you the basics of the language, focusing particularly on how it improves on JavaScript. It then focuses on building real life projects in CoffeeScript using jQuery, Rails, and Node.js.

We look at CoffeeScript as a language that takes the power of JavaScript and presents it in an elegant and concise syntax. We will then see how we can use its power to write beautiful and short programs for various environments and how it complements the latest and greatest web frameworks.

CoffeeScript programming with jQuery, Rails, and Node.js is all you need to become well versed with this great language and set you on your way to using it to write web applications.

Table of Contents

Chapter 1: Why CoffeeScript?
CoffeeScript syntax
CoffeeScript has great function syntax
CoffeeScript handles scope better
CoffeeScript has better object syntax
A few other things CoffeeScript fixes
List comprehensions
Conditional clauses and logical aliases
Array slicing and splicing
Destructuring or pattern matching
=> and @
Switch statements
Chained comparisons
Block strings, block comments, and strings
Summary
Chapter 2: Running CoffeeScript
The CoffeeScript stack
Node.js and npm
Node.js, npm, and CoffeeScript on Windows
Installing CoffeeScript on a Mac
Installing CoffeeScript on Linux
Building Node.js from source
Using CoffeeScript
The coffee command
Summary
Chapter 3: CoffeeScript and jQuery
Finding and changing elements
Utility functions
Ajax methods
Using jQuery
Using CoffeeScript and jQuery in the browser
Our application
Summary
Chapter 4: CoffeeScript and Rails
What makes Rails special?
Rails and JavaScript
Rails and CoffeeScript
Installing Rails
Developing our Rails application
Summary
Chapter 5: CoffeeScript and Node.js
Node is event-driven
Node is fast and scalable
Node is not Rails
Node and CoffeeScript
"Hello World" in Node
Express
WebSocket
Jade
Our application
Let's get started
Creating a view
node-supervisor
The to-do list view
The client side
Adding collaboration
Creating the collaboration UI
WebSocket on the client
WebSocket on the server
Joining a list
Adding to-do items to a shared list
Removing to-do items from a shared list
Summary

What You Will Learn

  • The basics of the language and how it compares to JavaScript
  • CoffeeScript’s powerful class syntax
  • Installing CoffeeScript on Windows, Mac OSX, and Linux using Node.js
  • Configuring CoffeeScript for browser applications
  • The basics of jQuery and using it with CoffeeScript
  • Using localStorage in browser-based applications
  • Two approaches to write CoffeeScript in Rails applications
  • Creating responsive web applications using WebSocket

Authors

Table of Contents

Chapter 1: Why CoffeeScript?
CoffeeScript syntax
CoffeeScript has great function syntax
CoffeeScript handles scope better
CoffeeScript has better object syntax
A few other things CoffeeScript fixes
List comprehensions
Conditional clauses and logical aliases
Array slicing and splicing
Destructuring or pattern matching
=> and @
Switch statements
Chained comparisons
Block strings, block comments, and strings
Summary
Chapter 2: Running CoffeeScript
The CoffeeScript stack
Node.js and npm
Node.js, npm, and CoffeeScript on Windows
Installing CoffeeScript on a Mac
Installing CoffeeScript on Linux
Building Node.js from source
Using CoffeeScript
The coffee command
Summary
Chapter 3: CoffeeScript and jQuery
Finding and changing elements
Utility functions
Ajax methods
Using jQuery
Using CoffeeScript and jQuery in the browser
Our application
Summary
Chapter 4: CoffeeScript and Rails
What makes Rails special?
Rails and JavaScript
Rails and CoffeeScript
Installing Rails
Developing our Rails application
Summary
Chapter 5: CoffeeScript and Node.js
Node is event-driven
Node is fast and scalable
Node is not Rails
Node and CoffeeScript
"Hello World" in Node
Express
WebSocket
Jade
Our application
Let's get started
Creating a view
node-supervisor
The to-do list view
The client side
Adding collaboration
Creating the collaboration UI
WebSocket on the client
WebSocket on the server
Joining a list
Adding to-do items to a shared list
Removing to-do items from a shared list
Summary

Book Details

ISBN 139781849519588
Paperback140 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
Twitter Bootstrap Web Development How-To Book Cover
Twitter Bootstrap Web Development How-To
$ 12.99
$ 9.10
Git: Version Control for Everyone Book Cover
Git: Version Control for Everyone
$ 23.99
$ 16.80
AngularJS Web Application Development Blueprints Book Cover
AngularJS Web Application Development Blueprints
$ 29.99
$ 21.00
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00