CoffeeScript Programming with jQuery, Rails, and Node.js by Michael Erasmus

By Michael Erasmus

research CoffeeScript programming with the 3 most well-liked internet applied sciences around

* examine CoffeeScript, a small and stylish language that compiles to JavaScript and should make your lifestyles as an internet developer better.
* discover the syntax of the language and notice the way it improves and complements JavaScript.
* construct 3 instance functions in CoffeeScript step via step.

In Detail

CoffeeScript is a tender yet well known language that makes internet programming enjoyable and extra efficient. It compiles to JavaScript and unleashes its robust gains whereas now not straying too faraway from the language. It's develop into some of the most well known languages on Github and is getting used for either browser and server part programming.

"CoffeeScript programming with jQuery, Rails, and Node.js" won't in simple terms train you the CoffeeScript language but in addition convey you the way it's getting used through expert programmers with the newest net technologies.

This booklet will train you the fundamentals of the language, focusing quite on the way it improves on JavaScript. It then makes a speciality of construction actual existence tasks in CoffeeScript utilizing jQuery, Rails, and Node.js.

We examine CoffeeScript as a language that takes the ability of JavaScript and offers it in a chic and concise syntax. we are going to then see how we will be able to use its strength to put in writing appealing and brief courses for varied environments and the way it enhances the most recent and maximum internet frameworks.

CoffeeScript programming with jQuery, Rails, and Node.js is all you must turn into good versed with this nice language and set you in your approach to utilizing it to jot down net applications

What you are going to examine from this book
* the fundamentals of the language and the way it compares to JavaScript
* CoffeeScript's robust classification syntax
* fitting CoffeeScript on home windows, Mac OSX, and Linux utilizing Node.js
* Configuring CoffeeScript for browser applications
* the fundamentals of jQuery and utilizing it with CoffeeScript
* utilizing localStorage in browser-based applications
* techniques to jot down CoffeeScript in Rails applications
* developing responsive internet functions utilizing WebSocket


It's a short consultant for programming CoffeeScript after which diving into programming with Rails, jQuery, and Node.js.

Who this booklet is written for

This booklet is for internet builders who wish to study programming with CoffeScript. it's also for builders who've a few event in JavaScript and are curious to benefit CoffeScript and construct purposes with it.

Show description

Read Online or Download CoffeeScript Programming with jQuery, Rails, and Node.js PDF

Similar javascript books

Understanding Ajax Using Javascript To Create Rich Internet Applications

AJAX is sizzling, sizzling, scorching! Why? it is uncomplicated. With AJAX, web builders and architects can create web-based functions that appear and feel like computing device purposes. those are responsive, highly-interactive functions that symbolize a brand new breed referred to as "Rich web functions" (RIA). This publication is a advisor to designing, imposing, and debugging AJAX purposes.

Plug-In CSS 100 Power Solutions

A hundred CSS strength options in a single convenient consultant This useful source comprises a hundred ready-to-run CSS plug-ins you should use to create dynamic web pages. all the plug-ins comprise HTML examples and reveal photographs displaying particular finish effects you could in achieving straight away. tools for utilizing CSS with JavaScript and HTML5 to make web content much more interactive and dynamic also are integrated.

Instant Node.js Starter

Software your scalable community functions and internet companies with Node. js with this ebook and booklet evaluation examine whatever new instantly! a quick, quickly, centred advisor providing quick effects methods to use module styles and Node Packet supervisor (NPM) on your purposes notice callback styles in NodeJS comprehend the use Node.

jQuery 2 Recipes A Problem-Solution Approach

JQuery is frequently often called the write much less, do extra javascript library. It permits a couple of transparent traces of stylish, well-tested, code to exchange many pages of advanced hand-coded script, rushing improvement occasions and supplying massive expense rate reductions. you'll find jQuery 2 Recipes problem-solution method of be a very good price and a feature-packed source as you start to incorporate jQuery on your personal tasks.

Extra resources for CoffeeScript Programming with jQuery, Rails, and Node.js

Sample text

It can be summarized as follows: • Your method can call other methods in its class directly • Your method can call methods on its own fields directly (but not on the fields' fields) • When your method takes parameters, your method can call methods on those parameters directly • When your method creates local objects, that method can call methods on the local objects Although, this is not a "strict law" in the sense that it should never be broken, it is more analogous to the law of nature, such that the code that tends to follow it also tends to be much simpler and more loosely coupled.

In essence, it allows you to pull single values from complex objects. It can simply allow you to assign multiple values at once, or deal with functions that return multiple values; as shown here: CoffeeScript: getLocation = -> [ 'Chigaco' 'Illinois' 'USA' ] [city, state, country] = getLocation() JavaScript: var city, country, getLocation, state, _ref; getLocation = function() { [ 30 ] Chapter 1 return ['Chigaco', 'Illinois', 'USA']; }; _ref = getLocation(), city = _ref[0], state = _ref[1], country = _ ref[2]; When you run this, you get three variables, city, state, and country with values that were assigned from the corresponding element in the array returned by the getLocation function.

It aims to let you easily install Unix tools that don't come with Mac OS X. js using Homebrew, you need to have Homebrew on your system. js source code. com/mxcl/homebrew/wiki/installation. js using the brew command, as shown in the following screenshot: As you can see from the output, Homebrew has not installed npm, without which we cannot install CoffeeScript. sh |sh [ 46 ] Chapter 2 After npm is installed, you should see something similar to the following screen: Installing CoffeeScript with npm Now that we have npm installed, we should be able to install CoffeeScript.

Download PDF sample

Rated 4.95 of 5 – based on 22 votes