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.

CoffeeScript Programming with jQuery, Rails, and Node.js

Starting
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.
$14.99
$29.99
RRP $14.99
RRP $29.99
eBook
Print + eBook

Instantly access this course right now and get the skills you need in 2016

With unlimited access to a constantly growing library of over 3,500 courses, a subscription to Mapt gives you everything you need to get that next promotion or to land that dream job. Cancel anytime.

+ Collection
Free Sample

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

Rails 4 Application Development HOTSHOT
$ 29.99
Building Dynamic Web 2.0 Websites with Ruby on Rails
$ 20.99
Instant RubyMine Assimilation
$ 14.99
Ruby on Rails Web Mashup Projects
$ 26.99