• Complain

Trevor Burnham - Async JavaScript: Build More Responsive Apps with Less Code

Here you can read online Trevor Burnham - Async JavaScript: Build More Responsive Apps with Less Code full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2012, publisher: Pragmatic Bookshelf, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Trevor Burnham Async JavaScript: Build More Responsive Apps with Less Code
  • Book:
    Async JavaScript: Build More Responsive Apps with Less Code
  • Author:
  • Publisher:
    Pragmatic Bookshelf
  • Genre:
  • Year:
    2012
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Async JavaScript: Build More Responsive Apps with Less Code: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Async JavaScript: Build More Responsive Apps with Less Code" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

With the advent of HTML5, front-end MVC, and Node.js, JavaScript is ubiquitousand still messy. This book will give you a solid foundation for managing async tasks without losing your sanity in a tangle of callbacks. Its a fast-paced guide to the most essential techniques for dealing with async behavior, including PubSub, evented models, and Promises. With these tricks up your sleeve, youll be better prepared to manage the complexity of large web apps and deliver responsive code.With Async JavaScript, youll develop a deeper understanding of the JavaScript language. Youll start with a ground-up primer on the JavaScript event modelkey to avoiding many of the most common mistakes JavaScripters make. From there youll see tools and design patterns for turning that conceptual understanding into practical code.The concepts in the book are illustrated with runnable examples drawn from both the browser and the Node.js server framework, incorporating complementary libraries including jQuery, Backbone.js, and Async.js. Youll learn how to create dynamic web pages and highly concurrent servers by mastering the art of distributing events to where they need to be handled, rather than nesting callbacks within callbacks within callbacks.Async JavaScript will get you up and running with real web development quickly. By the time youve finished the Promises chapter, youll be parallelizing Ajax requests or running animations in sequence. By the end of the book, youll even know how to leverage Web Workers and AMD for JavaScript applications with cutting-edge performance. Most importantly, youll have the knowledge you need to write async code with confidence.What You Need:Basic knowledge of JavaScript is recommended. If you feel that youre not up to speed, see the Resources for Learning JavaScript section in the preface.Async JavaScript was previously self-published. Its been completely edited and revised since its initial publication and is now part of our Pragmatic exPress series.

Trevor Burnham: author's other books


Who wrote Async JavaScript: Build More Responsive Apps with Less Code? Find out the surname, the name of the author of the book and a list of all author's works by series.

Async JavaScript: Build More Responsive Apps with Less Code — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Async JavaScript: Build More Responsive Apps with Less Code" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Async JavaScript Build More Responsive Apps with Less Code by Trevor Burnham - photo 1
Async JavaScript
Build More Responsive Apps with Less Code
by Trevor Burnham
Version: P1.0 (November 2012)
Copyright 2012 The Pragmatic Programmers, LLC. This book is licensed tothe individual who purchased it. We don't copy-protect itbecause that would limit your ability to use it for yourown purposes. Please don't break this trustyou can use this across all of your devices but please do not share this copywith other members of your team, with friends, or via file sharing services. Thanks.
Dave & Andy.

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and The Pragmatic Programmers, LLC was aware of a trademark claim, the designations have been printed in initial capital letters or in all capitals. The Pragmatic Starter Kit, The Pragmatic Programmer, Pragmatic Programming, Pragmatic Bookshelf and the linking g device are trademarks of The Pragmatic Programmers, LLC.

Every precaution was taken in the preparation of this book. However, the publisher assumes no responsibility for errors or omissions, or for damages that may result from the use of information (including program listings) contained herein.

Our Pragmatic courses, workshops, and other products can help you and your team create better software and have more fun. For more information, as well as the latest Pragmatic titles, please visit us at http://pragprog.com.

Dedicated to Steve Jobs and to the generation of entrepreneurs he inspired.

Table of Contents
Reintroducing the Tag
6.3Programmatic Loading
6.4What Weve Learned
A1.Tools for Taming JavaScript
A1.1TameJS
A1.2StratifiedJS
A1.3Kaffeine
A1.4Streamline.js
A1.5Node-Fibers
A1.6The Future of JavaScript: Generators
Early Praise for Async JavaScript

Async JavaScript is the first full book Ive seen dedicated to a key topic in JavaScript development today: how to deal with concurrency and concurrent tasks without going crazy! For the sake of your sanity, check this out.

Peter Cooper, editor of JavaScript Weekly

Trevor delivers a concise guide to writing asynchronous JavaScript with a perfect balance of browser and server-side examples. Part guide, part overview, wholly engaging, this book is a must-read for any JavaScript developer looking to level up.

Wynn Netherland, co-host of The Changelog

This is a complete guide to the asynchronous realm of JavaScript. The concepts and tools covered by this book are essential to anyone willing to build full-blown, well-structured and efficient JavaScript applications.

Julien Biezemans, Ruby/JavaScript developer, author of Cucumber.js

Acknowledgments

It was not love at first sight with me and JavaScript. Yet today, its one of my two favorite programming languages. The other? Its little brother, CoffeeScript. The story of how I learned to stop worrying and love JavaScripting is a story shared by tens of thousands of programmers. Id like to thank those who took JavaScript seriously from the start, shaping the rich development ecosystem the language enjoys today: John Resig, for creating the browsers de facto standard library, jQuery; Jeremy Ashkenas, for producing CoffeeScript and the rich yet minimalistic Backbone.js framework; Ryan Dahl, for giving the language a robust server environment; and all the other programmers whove proven through their work that JavaScript is a first-class language after all.

Of course, love alone didnt write this book. Id like to thank the Pragmatic Bookshelf team for helping me thoroughly renovate my original KickStarted manuscript and raise it to the standard of quality that PragProg is famous for. Particular thanks go to managing editor Susannah Pfalzer, head honchos Dave Thomas and Andy Hunt, and most of all my editor, Jackie Carter. Their savvy and motivation have been invaluable.

Thanks also to my technical reviewers for this edition: Julien Biezemans, Christophe Porteneuve, Michael Ficarra, Travis Swicegood, and Lon Ingram. Special thanks to Karl Stolley for going above and beyond in multiple reviews. Id also like to thank Stan Angeloff and Roly Fentanes for reviewing the original manuscript. Any remaining errors are entirely my fault.

Thanks, finally, to my employer, HubSpot, for supporting me as I brought this book to completion. After years of nomadic freelancing, Ive finally found a home.

Trevor Burnham
November 2012
Copyright 2012, The Pragmatic Bookshelf.

Introduction

Originally devised to enhance web pages in Netscape 2.0, JavaScript is now faced with being a single-threaded language in a multimedia, multitasking, multicore world. Yet JavaScript has not only persevered since 1995, its thrived. One after the other, potential rivals in the browserFlash, Silverlight, and Java applets, to name a fewhave come and (more or less) gone.

Meanwhile, when a programmer named Ryan Dahl wanted to build a new framework for event-driven servers, he searched the far reaches of computer science for a language that was both dynamic and single-threaded before realizing that the answer was right in front of him. And so, Node.js was born, and JavaScript became a force to be reckoned with in the server world.

How did this happen? As recently as 2001, Paul Graham wrote the following in his essay The Other Road Ahead:

I would not even use JavaScript, if I were you Most of the JavaScript I see on the Web isnt necessary, and much of it breaks.

Today, Graham is the lead partner at Y Combinator, the investment group behind Dropbox, Heroku, and hundreds of other start-upsnearly all of which use JavaScript. As he put it in a revised version of the essay, JavaScript now works.

When did JavaScript become a respectable language? Some say the turning point was Gmail (2004), which showed the world that with a heavy dose of Ajax you could run a first-class email client in the browser. Others say that it was jQuery (2006), which abstracted the rival browser APIs of the time to create a de facto standard. (As of 2011, 48 percent of the top 17,000 websites use jQuery.)

Whatever the reason, JavaScript is here to stay. Apple got behind JavaScript with WebKit and Safari. Microsoft is getting behind JavaScript with Metro. Even Adobe is getting behind JavaScript with tools to generate HTML5 instead of Flash. What began as a humble browser feature has become arguably the most important programming language in the world.

Thanks to the ubiquity of web browsers, JavaScript has come closer than any other language to fulfilling Javas old promise of write once, run anywhere. In 2007, Jeff Atwood coined Atwoods law:

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Async JavaScript: Build More Responsive Apps with Less Code»

Look at similar books to Async JavaScript: Build More Responsive Apps with Less Code. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Async JavaScript: Build More Responsive Apps with Less Code»

Discussion, reviews of the book Async JavaScript: Build More Responsive Apps with Less Code and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.