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

By Michael Erasmus

examine CoffeeScript programming with the 3 preferred net applied sciences around

Overview
* study CoffeeScript, a small and stylish language that compiles to JavaScript and may make your lifestyles as an online developer better.
* discover the syntax of the language and notice the way it improves and complements JavaScript.
* construct 3 instance functions in CoffeeScript step through step.

In Detail

CoffeeScript is a tender yet renowned language that makes net programming enjoyable and extra effective. It compiles to JavaScript and unleashes its robust good points whereas no longer straying too faraway from the language. It's turn into essentially the most well known languages on Github and is getting used for either browser and server facet programming.

"CoffeeScript programming with jQuery, Rails, and Node.js" won't purely educate you the CoffeeScript language but in addition express you ways it's getting used by means of specialist programmers with the most recent net technologies.

This publication will train you the fundamentals of the language, focusing rather on the way it improves on JavaScript. It then specializes in construction genuine existence tasks in CoffeeScript utilizing jQuery, Rails, and Node.js.

We examine CoffeeScript as a language that takes the facility of JavaScript and provides 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 attractive and brief courses for varied environments and the way it enhances the most recent and maximum net 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 technique to utilizing it to jot down net applications

What you'll study from this book
* the fundamentals of the language and the way it compares to JavaScript
* CoffeeScript's robust type 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
* methods to write down CoffeeScript in Rails applications
* developing responsive internet purposes utilizing WebSocket

Approach

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

Who this booklet is written for

This e-book is for net builders who wish to examine programming with CoffeScript. it's also for builders who've a few event in JavaScript and are curious to profit CoffeScript and construct functions with it.

Show description

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

Similar javascript books

AngularJS

Develop smaller, lighter net apps which are easy to create and straightforward to check, expand, and keep as they develop. This hands-on advisor introduces you to AngularJS, the open resource JavaScript framework that makes use of Model–view–controller (MVC) structure, facts binding, client-side templates, and dependency injection to create a much-needed constitution for construction net apps.

Guided through engineers who labored on AngularJS at Google, you’ll stroll in the course of the framework’s key gains, after which construct a operating AngularJS app—from structure to checking out, compiling, and debugging. You’ll find out how AngularJS is helping decrease the complexity of your internet app.
* Dive deep into Angular’s construction blocks and learn the way they interact
* achieve greatest flexibility via keeping apart good judgment, facts, and presentation obligations with MVC
* gather your complete app within the browser, utilizing client-side templates
* Use AngularJS directives to increase HTML with declarative syntax
* converse with the server and enforce basic caching with the $http provider
* Use dependency injection to enhance refactoring, testability, and a number of surroundings layout
* Get code samples for universal difficulties you face in such a lot internet apps

Javascript 1.5 by example

Explores the pc language's up-to-date positive factors whereas explaining easy methods to upload JavaScript to current HTML websites and reviewing syntax, notation, conventions, variable manipulation, common sense statements, and item programming. creation. I. WELCOME TO JAVASCRIPT. 1. stepping into JavaScript! 2.

JavaScript and Ajax for the Web, Sixth Edition

Have to research JavaScript quick? This best-selling reference’s visible structure and step by step, task-based directions may have you up and working with JavaScript very quickly. during this thoroughly up-to-date version of our best-selling advisor to JavaScript, prime net and computing specialists Tom Negrino and Dori Smith use crystal-clear directions and pleasant prose to introduce you to all of ultra-modern JavaScript necessities.

Switching to Angular 2

Key FeaturesGet brand new with the most recent adjustments to Angular 2, together with the advancements to directives, swap detection, dependency injection, router, and moreUnderstand Angular 2's new component-based architectureStart utilizing TypeScript to supercharge your Angular 2 applicationsBook DescriptionAngularJS is a JavaScript framework that makes development net functions more straightforward.

Additional info for CoffeeScript Programming with jQuery, Rails, and Node.js

Sample text

The unless keyword is the inverse of the if keyword; if and unless can take the postfix form, meaning statements can go at the end of the line. CoffeeScript also provides plain English aliases for some of the logical operators. = • not for ! owner); } Array slicing and splicing CoffeeScript allows you to easily extract parts of an array using the .. and ... notation. m] will select all the elements including n and m, whereas [n…m] will select only the elements between n and m. [ 29 ] Why CoffeeScript?

Later on, it became self-hosting; the language compiler was written in itself. This means that the compiler for CoffeeScript was written in CoffeeScript code which could then be compiled to JavaScript, which could then be run to compile CoffeeScript again. Confusing, isn't it? Without going any further into what a feat this is, this also means that in order to run CoffeeScript, we need to be able to execute JavaScript standalone on your computer, without a browser. js, or just Node, is a JavaScript framework designed for writing network-server applications.

CoffeeScript replaces it with list comprehensions, which were mostly borrowed from the Python language and also very similar to constructs that you'll find in functional languages such as Haskell. Comprehensions provide a more declarative way of filtering, transforming, and aggregating collections or performing an action for each element. = 'vanilla') [ 25 ] Why CoffeeScript? "); } } return _results; })(); Although they are quite simple, comprehensions have a very condensed form and do a lot in very little code.

Download PDF sample

Rated 4.79 of 5 – based on 6 votes