Read e-book online JavaScript: The Good Parts PDF

By Douglas Crockford

So much programming languages include sturdy and undesirable components, yet JavaScript has greater than its proportion of the undesirable, having been constructed and published in a rush sooner than it can be subtle. This authoritative publication scrapes away those undesirable gains to bare a subset of JavaScript that's extra trustworthy, readable, and maintainable than the language as a whole-a subset you should use to create actually extensible and effective code.

Considered the JavaScript professional via many folks within the improvement neighborhood, writer Douglas Crockford identifies the abundance of excellent principles that make JavaScript a good object-oriented programming language-ideas akin to capabilities, unfastened typing, dynamic gadgets, and an expressive item literal notation. regrettably, those stable rules are jumbled together with undesirable and downright lousy principles, like a programming version in accordance with worldwide variables.

When Java applets failed, JavaScript turned the language of the net by way of default, making its acceptance virtually thoroughly self sustaining of its characteristics as a programming language. In JavaScript: the great Parts, Crockford eventually digs during the steaming pile of excellent intentions and errors to provide you an in depth examine the entire surely based elements of JavaScript, including:
• Syntax
• Objects
• Functions
• Inheritance
• Arrays
• usual expressions
• Methods
• Style
• attractive features

The actual good looks? As you progress forward with the subset of JavaScript that this booklet offers, you'll additionally stay clear of the necessity to unlearn the entire undesirable components. in fact, in order to discover extra concerning the undesirable elements and the way to take advantage of them badly, easily seek advice the other JavaScript book.

With JavaScript: the great Parts, you'll find a attractive, dependent, light-weight and hugely expressive language that allows you to create potent code, no matter if you're dealing with item libraries or simply attempting to get Ajax to run quickly. in case you boost websites or functions for the net, this booklet is an absolute needs to.

Show description

Read or Download JavaScript: The Good Parts PDF

Similar javascript books

Download e-book for iPad: Professional JavaScript for Web Developers (3rd Edition) by Nicholas C. Zakas

An important replace to a bestselling JavaScript book
As the main scripting language for the net, JavaScript is supported via each smooth internet browser and permits builders to create client-side scripts that benefit from gains equivalent to animating the canvas tag and permitting client-side garage and alertness caches. After an in-depth creation to the JavaScript language, this up-to-date version of a bestseller progresses to collapse how JavaScript is utilized for net improvement utilizing the newest net improvement applied sciences. Veteran writer and JavaScript guru Nicholas Zakas indicates how JavaScript works with the recent HTML5 in addition to different major advances in internet improvement because it pertains to JavaScript.

* starts off with an advent to JavaScript fundamentals after which strikes directly to extra complicated issues concerning JavaScript and advances in internet improvement technologies

* Describes how JavaScript is applied into HTML5

* Covers browser/feature detection in scripts, event-driven JavaScript improvement, errors reporting and debugging, offline software and knowledge garage, and more

Professional JavaScript for net builders, third variation is an authoritative JavaScript source that each net builders must have.

XML and Perl by Mark Riehl PDF

When you are a Perl programmer seeking to discover Perl's XML functions or an XML developer with a easy realizing of Perl, this ebook provides you with all of the instruments required for XML processing with Perl. XML and Perl teaches you to create moveable, strong, and extensible functions in the event you use XML and Perl jointly.

Programming the BeagleBone Black: Getting Started with by Simon Monk PDF

Software your personal BeagleBone Black tasks! construct artistic BeagleBone Black devices--no past programming or electronics adventure required. In Programming the BeagleBone Black, electronics guru Simon Monk explains crucial program improvement tools via straight forward instructions and funky downloadable examples.

AngularJS Directives Cookbook - download pdf or read online

Expand the functions of AngularJS and construct dynamic internet functions via growing custom-made directives with this feature of greater than 30 recipesAbout This BookLearn the right way to expand HTML templates in new how you can construct even greater net purposes with extraordinary interface componentsBuild reusable directives for large-scale AngularJS applicationsCreate even refined and ambitious sleek net apps with easeWho This ebook Is ForThis publication is for builders with AngularJS adventure who are looking to expand their wisdom to create or customise directives in any form of AngularJS program.

Additional info for JavaScript: The Good Parts

Example text

Moreover, if our preferred template engine hasn’t been packaged up to work with Express, it’s trivial to add the functionality ourselves. Since Jade is the default, we’ll use it for this example, but you should choose the template engine that best fits your application’s needs. submit(); }); If you decide to use Jade, note that whitespace in Jade is significant, so things are only nested logically if they’re nested physically. You may also note that there is no doctype or head in the template above.

You may also note that there is no doctype or head in the template above. No matter which template engine it uses, Express expects a layout file containing common page elements—we did the same thing with our parent template earlier. jade in our views directory, we’ve got our view layer wrapped up. The last thing we need to do is to create a controller. render("index"); }); } These controllers for the user object will route the application to the correct view, depending on the request and parameters received, or initiate tasks on the user model.

Creating Files on the Fly An in-depth exploration of any of the necessary modules is out of scope for this guide, but there are numerous libraries to help you generate other types of files from within Node. While these aren’t templates in the same sense as the templates we’ve looked at so far, they can map directly to a filename in a URL and be built and served in a way that’s invisible to the user, just like templates. For instance, you might have cause to dynamically generate image files to do resizing or add watermarks.

Download PDF sample

JavaScript: The Good Parts by Douglas Crockford

by Edward

Rated 4.49 of 5 – based on 13 votes