CoffeeScript: Accelerated JavaScript Development by Trevor Burnham

Posted by

By Trevor Burnham

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 stable 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 bettering their knowing of JavaScript. You'll find out about time-saving good points like record comprehensions and splats, arrange your code into modules with extensible periods, and get your toes rainy with jQuery via development a fast paced observe game.

The ebook additionally introduces Node.js, the key server-side JavaScript surroundings. Node and CoffeeScript become a good fit, permitting you to increase the back and front ends of an internet software within the comparable language. With CoffeeScript on your toolkit, you could write nice code anyplace.

Show description

Read or Download CoffeeScript: Accelerated JavaScript Development PDF

Similar javascript books

Sams Teach Yourself Ajax, JavaScript, and PHP All in One

<P style="MARGIN: 0px">In only a few minutes, you could find out how to use Ajax, JavaScript, and Hypertext Preprocessor to create interactive interfaces in your net purposes via combining those strong applied sciences.
<P style="MARGIN: 0px"> 
<P style="MARGIN: 0px">No prior Ajax programming event is needed. utilizing an easy, step by step technique, each one lesson during this booklet builds at the past ones, allowing you to profit the necessities of Ajax programming with JavaScript, personal home page, and similar applied sciences from the floor up.
<P style="MARGIN: 0px"> 
<P style="MARGIN: 0px">Regardless of no matter if you run Linux, home windows, or Mac OS X, the enclosed CD contains a whole Ajax programming starter equipment that offers you the entire programming instruments, reference details, JavaScript libraries, and server software program you must arrange a strong surroundings for studying, trying out, and production.
<P style="MARGIN: 0px"> 
<P style="MARGIN: 0px">Learn how to…
<UL> * construct larger, extra interactive interfaces in your internet purposes
* Make JavaScript, HTML, XML, and personal home page interact to create Ajax results
* collect an Ajax program
* Create and eat internet providers with cleaning soap and relaxation
* steer clear of universal blunders and troubleshoot courses
* Use renowned Ajax libraries to hurry up and enhance universal programming tasks
</UL> <P style="MARGIN: 0px"> 
<P style="MARGIN: 0px">On the CD
<UL> * XAMPP for home windows, Mac OS X, and Linux–an easy-to-install package deal to establish a personal home page- and MySQL-enabled Apache server in your machine
* The jEdit programming editor for home windows, Mac, and Linux
* Prototype, Scriptaculous, Rico, and XOAD–popular JavaScript libraries for growing Ajax purposes and results
* a whole Ajax, HTML, XML, and Hypertext Preprocessor educational reference library in searchable PDF structure
* resource code for the examples within the book
</UL> <P style="MARGIN: 0px"> 
<P style="MARGIN: 0px">Phil Ballard is a software program engineering advisor and developer focusing on web site and intranet layout and improvement for a world portfolio of consumers. He has an honors measure from the college of Leeds, England, and has labored for numerous years in advertisement and managerial roles within the excessive know-how sector.
<P style="MARGIN: 0px"> 
<P style="MARGIN: 0px">Michael Moncur is a contract webmaster and writer. He runs a community of web sites and has written numerous bestselling books approximately net improvement, networking, certification courses, and databases.
<P style="MARGIN: 0px"> 
<P style="MARGIN: 0px">Category: Web improvement
<P style="MARGIN: 0px">Covers: Ajax, JavaScript and personal home page
<P style="MARGIN: 0px">User Level: Beginning—Intermediate
<P style="MARGIN: 0px"> 
<P style="MARGIN: 0px">$39. ninety nine united states / $43. ninety nine CAN / £25. ninety nine web united kingdom
<P style="MARGIN: 0px"> 

HTML5 Game Programming with enchant.js

HTML5 online game Programming with enchant. js supplies first-time programmers of every age the instruments to show their online game rules into fact. A step by step consultant to the unfastened, open-source HTML5 and JavaScript engine enchant. js, it really is perfect for online game enthusiasts who've continuously desired to make their very own video game yet didn’t know the way.

Pro TypeScript: Application-Scale JavaScript Development

JavaScript is all over, either as a natural language and in well known libraries like Angular, jQuery and Knockout, yet clients of contemporary object-oriented languages like Java and C# usually locate JavaScript challenging to exploit and tough to increase to large-scale functions. TypeScript is an leading edge open resource language from Microsoft that mixes robust language good points and stronger tooling aid with the main points of interest of JavaScript as a versatile, dynamic language that could run in any browser and on any working procedure.

Express.Js Deep API Reference

Exhibit. js Deep API Reference is your brief, concise consultant to specific. js APIs. this versatile Node. js net program framework offers a powerful set of positive factors for construction unmarried, multi-page, and hybrid internet applications.

Through six to-the-point chapters, you will discover references for configurations, settings, environments, middleware, templating engines (including Consolidate. js), extract parameters, routing, request handlers, reaction, and streams.

Written through Azat Mardan, the writer of professional exhibit. js and sensible Node. js, you can find this brief, concise consultant vital on your convey. js paintings.

Additional resources for CoffeeScript: Accelerated JavaScript Development

Sample text

It’s common to pass four or five arguments to a constructor just to set initial properties on the instance object. By using the @argument syntax instead, you save that many lines of code. Nice. 5 Default Arguments (arg =) Let’s say that you have a function where one of its arguments is going to have one particular value most of the time, like this: ringFireAlarm = (isDrill) -> # it's pretty much always a drill ... report erratum • discuss Default Arguments (arg =) • 26 Wouldn’t it be nice if ringFireAlarm() were shorthand for the much more common ringFireAlarm true?

It should look like Figure 3, Playing with our command-line prompt, on page 33. report erratum • discuss You’ve Done Well, Young Padawan • 33 Figure 3—Playing with our command-line prompt Hopefully you’ve developed an appreciation for the power and syntactic ease of CoffeeScript functions. In the next chapter, we’ll learn about working with objects and arrays, and we’ll turn our little experiment in standard IO into a full-fledged game. 999 percent of the Earth’s population. You’ve learned how to define, call, and return values from functions.

That means that the JSON above can be replaced with something more YAML-like: father = name: 'John' daughter: name: 'Jill' son: name: 'Jack' You can also use this streamlined notation inline: fellowship = wizard: 'Gandalf', hobbits: ['Frodo', 'Pippin', 'Sam'] This code is equivalent to the following: fellowship = {wizard: 'Gandalf', hobbits: ['Frodo', 'Pippin', 'Sam']} The magic here is that every time the CoffeeScript compiler sees :, it knows that you’re building an object. This technique is especially handy when a function takes a hash of options as its last argument: drawSprite x, y, invert: true Same-Name Key-Value Pairs One handy trick that CoffeeScript offers is the ability to omit the value from a key-value pair when the value is a variable named by the key.

Download PDF sample

Rated 4.25 of 5 – based on 21 votes