By Trevor Burnham

ISBN-10: 1934356786

ISBN-13: 9781934356784

For 15 years, dynamic web pages has been written in one language: JavaScript. Now, for the 1st time, programmers have another that doesn't upload an additional layer of abstraction or require plugins. CoffeeScript presents all of JavaScript's performance wrapped in a cleanser, extra succinct syntax that encourages use of "the sturdy parts" of the language.

CoffeeScript: speeded up JavaScript Development is geared toward programmers who are looking to get a grip in this new language whereas enhancing their figuring out of JavaScript. You'll find out about time-saving positive factors like checklist comprehensions and splats, arrange your code into modules with extensible sessions, and get your toes rainy with jQuery through development a fast paced notice game.

The ebook additionally introduces Node.js, the major server-side JavaScript setting. Node and CoffeeScript turn into an excellent fit, permitting you to boost the back and front ends of an internet program within the related language. With CoffeeScript on your toolkit, you could write nice code wherever.

Show description

Read or Download CoffeeScript: Accelerated JavaScript Development PDF

Best javascript books

Addy Osmani's Developing Backbone.js Applications PDF

In an effort to construct your site’s frontend with the single-page software (SPA) version, this hands-on publication indicates you ways to get the task performed with spine. js. You’ll create dependent JavaScript functions, utilizing Backbone’s personal style of model-view-controller (MVC) structure.

Download e-book for kindle: Create Web Charts with jqPlot by Fabio Nelli

Create net Charts with jqPlot exhibits find out how to convert your information into crowd pleasing, leading edge, lively, and hugely interactive browser-based charts. This e-book is appropriate for builders of all event degrees and desires: should you love quickly and potent strategies, you should use the jqPlot library to generate charts with outstanding results and animations utilizing just a couple of strains of code.

Sagar Ganatra's Instant Kendo UI Mobile PDF

Functional recipes to profit the Kendo UI cellular library and its numerous parts for construction cellular purposes successfully review study whatever new right away! a brief, quickly, centred consultant offering rapid effects comprehend a number of the parts at the Kendo UI cellular program framework discover ways to use a few of the widgets within the Kendo UI cellular library that can assist you construct a cellular program quickly construct functions that offer local feel and appear with no need to take care of a separate code base intimately The Kendo UI cellular library is a one cease technique to construct cellular purposes swiftly.

Extra info for CoffeeScript: Accelerated JavaScript Development

Example text

Note that JSON is a subset of JavaScript and can usually be pasted directly into CoffeeScript code. ) But there are plenty of other ways of creating objects. In fact, we created a ton of them in the last chapter, because all functions are objects. There are two ways of accessing object properties: dot notation and bracket notation. x refers to the property of obj named x. Bracket notation is more versatile: any expression placed in the brackets is evaluated and converted to a string, and then that string is used as the property name.

Note that parentheses are optional in function calls but not in argument lists, except when the argument list is empty. ) And we’ve used string interpolation to insert an expression into a string. CoffeeScript’s interpolation syntax is similar to Ruby’s: "A#{expression}Z" is equivalent to 'A' + (expression) + 'Z'. Interpolations only work in double-quoted strings. ) report erratum • discuss Functions 101 • 15 A Tale of Two Function Declaration Syntaxes In JavaScript, there are two ways of defining a function.

5] [1, 2, 3, 4, 5] The .. defines an inclusive range. But often, we want to omit the last value; in those cases, we add an extra . 5] [1, 2, 3, 4] (As a mnemonic, picture the extra . 1] [5, 4, 3, 2] This syntax is rarely used on its own, but as we’ll soon see, it’s essential to CoffeeScript’s for loops. slice 0, 3 ['a', 'b', 'c'] The two numbers given to slice are indices; everything from the first index up to but not including the second index is copied to the result. 3] ['a', 'b', 'c', 'd'] The rules here are slightly different than they were for standalone ranges, though, due to the nature of slice.

Download PDF sample

CoffeeScript: Accelerated JavaScript Development by Trevor Burnham

by Brian

Rated 4.89 of 5 – based on 14 votes