Start reading JavaScript Patterns on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here or start reading now with a free Kindle Reading App.

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

Sorry, this item is not available in
Image not available for
Colour:
Image not available
 

JavaScript Patterns [Kindle Edition]

Stoyan Stefanov
4.6 out of 5 stars  See all reviews (16 customer reviews)

Print List Price: £19.99
Kindle Price: £11.51 includes VAT* & free wireless delivery via Amazon Whispernet
You Save: £8.48 (42%)
* Unlike print books, digital books are subject to VAT.

Free Kindle Reading App Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.

To get the free app, enter your e-mail address or mobile phone number.

Formats

Amazon Price New from Used from
Kindle Edition £11.51  
Paperback £12.61  
Earn a Free Kindle Book
Earn a Free Kindle Book
Buy a Kindle book between now and 31 March and receive a promotional code good for one free Kindle book. Terms and conditions apply. Learn more

Book 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 using JavaScript to write a client-side, server-side, or desktop application.

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 Description

Book Description

Build Better Applications with Coding and Design Patterns

About the Author

Stoyan Stefanov is a Yahoo! web developer, Zend Certified Engineer, and an author, contributor, and tech reviewer of various O'Reilly books. He speaks regularly about web development topics at conferences and on his blog at www.phpied.com. Stoyan is the creator of the smush.it image optimization tool and architect of Yahoo's performance optimization tool YSlow 2.0.


Product details

  • Format: Kindle Edition
  • File Size: 1010 KB
  • Print Length: 236 pages
  • Simultaneous Device Usage: Unlimited
  • Publisher: O'Reilly Media; 1 edition (9 Sept. 2010)
  • Sold by: Amazon Media EU S.à r.l.
  • Language: English
  • ASIN: B0046RERXE
  • Text-to-Speech: Enabled
  • X-Ray:
  • Word Wise: Not Enabled
  • Average Customer Review: 4.6 out of 5 stars  See all reviews (16 customer reviews)
  • Amazon Bestsellers Rank: #78,929 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?


More About the Author

Discover books, learn about writers, and more.

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

4.6 out of 5 stars
4.6 out of 5 stars
Most Helpful Customer Reviews
7 of 7 people found the following review helpful
5.0 out of 5 stars Start using JavaScript! 25 May 2011
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?
7 of 7 people found the following review helpful
5.0 out of 5 stars 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?
12 of 13 people found the following review helpful
5.0 out of 5 stars Great modern JS overview 29 April 2011
By LDJ TOP 1000 REVIEWER
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?
2 of 2 people found the following review helpful
5.0 out of 5 stars Writing solid JavaScript, properly explained 27 Sept. 2012
Format:Paperback
Master and beginner JavaScript developers alike have a reason to thank Stoyan Stefanov- he did a fantastic job surveying the JavaScript landscape and mapping out key strategies for us to use in writing JavaScript applications large and small. He explains JavaScript and how to use it properly very well in this book.

"JavaScript Patterns" is a thoughtful, thorough, and written manual on developing JavaScript applications in a patterns-based way. It excels in three main areas:

First, it explains with clear examples the difference between classical (e.g. class-like as in C++, Java, C#) language idioms of which many of us are indoctrinated and the more modern, functional, loose-type style of JavaScript. It is a good sell, as he argues convincingly for a more free and open understanding of what an Object can be in a Object-Orientated architecture. Most worth noting is how it so clearly explains the variety, prominence, and role of Functions in the language.

Second, it clearly shows through example many of the JavaScript "gotchas" like counter-intuitive hoisting rules and issues with unexpected typecasting. Each point comes with an example sophisticated enough to get the point across but without unneeded detail.

Finally, it dives into richer examples of the classical design patterns (Singleton, Factory, Decorator...) and how to apply them in JavaScript well using many of the OO patterns discussed earlier in the text.

High value in each Chapter

The "signal to noise" ratio in this text is very high. Very often authors, most notably Crockford, will go down a rabbit hole of pedantic unimportant threads.
Read more ›
Comment | 
Was this review helpful to you?
1 of 1 people found the following review helpful
5.0 out of 5 stars does a great job, in only 205 pages 1 Aug. 2014
Format:Paperback|Verified Purchase
The trouble with most programmers have when learning javascript, is that they often have the mindset that JavaScript is not a real programming language and it is only a scripting language.. This problem is exasberated by that fact, that today most programmers interactions with javascript, is often restricted through some kind of Javascript framework, which in my opnion often disguise the elegance and intricacies of the language itself.

I feel this book, does a great job, in only 205 pages, of introducing you to, the complexities that these frameworks are shielding you from.

I bought this book, along with "Javascript the definitive guide" & "Javascript: The Good parts" and honestly think that this is a trilogy that all programmers should read. I managed to read all 3 books cover to cover, and that is saying something!
Comment | 
Was this review helpful to you?
1 of 1 people found the following review helpful
5.0 out of 5 stars Very good book about advanced JavaScript 15 Aug. 2012
Format:Paperback|Verified Purchase
This book is not for newbies. It successfully translates the most popular programming patterns to JavaScript. Very wide knowledge, I call it the "new age JavaScript" ("new age" in a good sense ;). If you're fairly new to the subject, I'd point you first to my favourite JavaScript book of the same author - "Object-Oriented JavaScript".
Comment | 
Was this review helpful to you?
Would you like to see more reviews about this item?
Were these reviews helpful?   Let us know
Most Recent Customer Reviews
5.0 out of 5 stars A good book. I would definitely recommend
A good book. I would definitely recommend. I found it to be very informative and answered a lot of unanswered questions.
Published 17 days ago by MJG
4.0 out of 5 stars Patterns are an essential part of the coding trade - this book...
I really found this book very helpful as someone who has used js for years and sometimes come up against some strange ways that developers do things. Read more
Published 6 months ago by Mr. C. Crane
5.0 out of 5 stars if you struggle with js buy this book
Most helpful javascript book I've ever read! It helped me to understand callbacks and how to program common javascript pattern.
Published 8 months ago by C. Dudek
5.0 out of 5 stars great book for a new/intermediate javascript pattern
if you have read the definitive guide and Crockford, this book should be next on your list. I have been coding in javascript now for about 18 months or so and this book has been... Read more
Published on 3 Oct. 2012 by Paul Ryan
4.0 out of 5 stars A must for any serious JS developer
This book goes into the dynamic nature of the language and teaches methodologies and routines to write code that may be reused and extended, and is understandable to other... Read more
Published on 18 July 2012 by Sergio P
4.0 out of 5 stars S book that every JS developer should have
I learned a lot of things on how JavaScript works behind the scenes. I always thought that I knew how JS works but this book explains most of the good patterns of doing things but... Read more
Published on 5 May 2012 by Thodoris
5.0 out of 5 stars Short, but packed with goodies
I bought this book partly based on reading bits of it first and partly based on other reviews. I was not disappointed. Read more
Published on 13 Dec. 2011 by A. Garrod
2.0 out of 5 stars disappointing.
I knew the author before I bought the book.
I read his blog and I know he is a competent guy when it comes to javascript.

What a shame ? Read more
Published on 27 Nov. 2011 by oo
5.0 out of 5 stars One of the best books ever written about JavaScript!
First I have to mention that this book is NOT for beginners! The author adresses advanced JavaScript topics and goes deeper in about what's going on behind the scenes of your... Read more
Published on 28 Aug. 2011 by Christophe
Search Customer Reviews
Only search this product's reviews

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