Start reading JavaScript Patterns on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here.

Deliver to your Kindle or other device

 
 
 

Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Read books on your computer or other mobile devices with our FREE Kindle Reading Apps.
JavaScript Patterns
 
 

JavaScript Patterns [Kindle Edition]

Stoyan Stefanov
4.4 out of 5 stars  See all reviews (8 customer reviews)

Digital List Price: £15.78 What's this?
Print List Price: £22.99
Kindle Price: £10.91 includes VAT* & free wireless delivery via Amazon Whispernet
You Save: £12.08 (53%)
Unlike print books, digital books are subject to VAT.

Formats

Amazon Price New from Used from
Kindle Edition £10.91  
Paperback £14.94  


Product Description

Book Description

Build Better Applications with Coding and Design Patterns

Product Description

What's the best approach for developing an application with JavaScript? This book helps you answer that question with numerous JavaScript coding patterns and best practices. If you're an experienced developer looking to solve problems related to objects, functions, inheritance, and other language-specific categories, the abstractions and code templates in this guide are ideal -- whether you're writing a client-side, server-side, or desktop application with JavaScript.

Written by JavaScript expert Stoyan Stefanov -- Senior Yahoo! Technical and architect of YSlow 2.0, the web page performance optimization tool -- JavaScript Patterns includes practical advice for implementing each pattern discussed, along with several hands-on examples. You'll also learn about anti-patterns: common programming approaches that cause more problems than they solve.

  • Explore useful habits for writing high-quality JavaScript code, such as avoiding globals, using single var declarations, and more
  • Learn why literal notation patterns are simpler alternatives to constructor functions
  • Discover different ways to define a function in JavaScript
  • Create objects that go beyond the basic patterns of using object literals and constructor functions
  • Learn the options available for code reuse and inheritance in JavaScript
  • Study sample JavaScript approaches to common design patterns such as Singleton, Factory, Decorator, and more
  • Examine patterns that apply specifically to the client-side browser environment

Product details

  • Format: Kindle Edition
  • File Size: 2856 KB
  • Print Length: 236 pages
  • Publisher: O'Reilly Media (9 Sep 2010)
  • Sold by: Amazon Media EU S.à r.l.
  • Language English
  • ASIN: B0046RERXE
  • Text-to-Speech: Enabled
  • Average Customer Review: 4.4 out of 5 stars  See all reviews (8 customer reviews)
  • Amazon Bestsellers Rank: #46,498 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?


More About the Author

Stoyan Stefanov
Discover books, learn about writers, and more.

Visit Amazon's Stoyan Stefanov Page

What Other Items Do Customers Buy After Viewing This Item?


Tag this product

 (What's this?)
Think of a tag as a keyword or label you consider is strongly related to this product.
Tags will help all customers organise and find favourite items.
Your tags: Add your first tag
 

Customer Reviews

Most Helpful Customer Reviews
5 of 5 people found the following review helpful
Great modern JS overview 29 April 2011
Format:Paperback
With so much online content offering JavaScript tutorials you may ask why you'd want a book like this? The simple reason is that this book offers a fantastic, succinct and complete overview of *MODERN* JavaScript design patterns, methodologies and best practices. The book itself is only 230 odd pages long, but in this covers pretty much everything you need to know about writing modern JS for both in and out of the browser. Best practices are discussed and clearly demonstrated, along with 'antipatterns' or common mistakes you should avoid.
The book doesn't cover the basics (this isn't a book for the complete beginner, but aimed at someone with previous JS experience), but its eight chapters excel at demonstrating all aspects of modern day javascript. The chapter on patterns discusses the namespaces pattern, module pattern (increasingly common in todays web apps), sandbox pattern, the chaining pattern and much more. It does this in the clearest and most concise method I have seen.

I read this book in a day and will no doubt keep going back to it as a reference. a fantastic resource that i'd highly recommend.
Comment | 
Was this review helpful to you?
3 of 3 people found the following review helpful
Format:Paperback
For once there's a JavaScript book that demonstrates good coding practice using the world's most misunderstood language. Okay, this book isn't for those who are beginning JavaScript but once you know the basics this book will demonstrate how to write efficient, eloquent and effective code. The best thing about this book is that Stefanov devotes a chapter the use of Design Patterns with JavaScript, something which most developers dismiss with this language because JavaScript is "classless". Stefanov also gives good advice on performance related issues, what features of JavaScript you should never use (eval for instance) as well as code structure. I found this book to be one of the best I've read on JavaScript, just make sure you understand the fundamentals of the language and have some practical experience before pulling back the cover.
Comment | 
Was this review helpful to you?
1 of 1 people found the following review helpful
Clear and Useful 1 Feb 2012
By MrFish
Format:Paperback
I purchased this book after watching plenty of Doug Crockford videos on Advanced Javascript Programming. I also purchased Javascript: The Good Parts (at the same time).
Of the two books I found this the more useful, they contains a lot of similar information but this book seems to be more appropriate for the hands on programmer. Easy to read and relevant.
Comment | 
Was this review helpful to you?

Popular Highlights

 (What's this?)
&quote;
In JavaScript theres no curly braces local scope; in other words, blocks dont create scope. Theres only function scope. &quote;
Highlighted by 31 Kindle users
&quote;
remember that reusable members, such as methods, should go to the prototype. &quote;
Highlighted by 30 Kindle users
&quote;
To avoid confusion caused by the implied typecasting, always use the === and !== operators that check both the values and the type of the expressions you compare: &quote;
Highlighted by 29 Kindle users

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   



Look for similar items by category


Look for similar items by subject


Amazon Media EU S.à r.l. GB Privacy Statement Amazon Media EU S.à r.l. GB Delivery Information Amazon Media EU S.à r.l. GB Returns & Exchanges