Buy new:
-31% $27.69
to get FREE delivery Tomorrow, November 18
Ships from: Amazon.com
Sold by: Amazon.com
$27.69 with 31 percent savings
List Price: $39.99
The List Price is the suggested retail price of a new product as provided by a manufacturer, supplier, or seller. Except for books, Amazon will display a List Price if the product was purchased by customers on Amazon or offered by other retailers at or above the List Price in at least the past 90 days. List prices may not necessarily reflect the product's prevailing market price.
Learn more

Get Fast, Free Shipping with Amazon Prime
FREE Returns
to get FREE delivery Tomorrow, November 18. Order within 11 hrs 5 mins
Or Non members get FREE delivery Friday, November 22 on orders shipped by Amazon over $35
In Stock
$$27.69 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$27.69
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
Amazon.com
Ships from
Amazon.com
Sold by
Amazon.com
Sold by
Amazon.com
Returns
Returnable until Jan 31, 2025
Returnable until Jan 31, 2025
For the 2024 holiday season, eligible items purchased between November 1 and December 31, 2024 can be returned until January 31, 2025.
Returns
Returnable until Jan 31, 2025
For the 2024 holiday season, eligible items purchased between November 1 and December 31, 2024 can be returned until January 31, 2025.
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Payment
Secure transaction
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$11.92

Get Fast, Free Shipping with Amazon Prime
FREE Returns
The book has one or more of the following: * Highlighting, writing or underlining * May include previous owners name/sticker * Rip on the cover repaired with book tape * Ex-library or Ex-school The book has one or more of the following: * Highlighting, writing or underlining * May include previous owners name/sticker * Rip on the cover repaired with book tape * Ex-library or Ex-school See less
to get FREE delivery Tuesday, November 19. Order within 21 hrs 50 mins
Or Non members get FREE delivery Friday, November 22 on orders shipped by Amazon over $35
Only 1 left in stock - order soon.
$$27.69 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$27.69
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

Follow the author

Something went wrong. Please try your request again later.

Maintainable JavaScript: Writing Readable Code 1st Edition

4.2 4.2 out of 5 stars 45 ratings

{"desktop_buybox_group_1":[{"displayPrice":"$27.69","priceAmount":27.69,"currencySymbol":"$","integerValue":"27","decimalSeparator":".","fractionalValue":"69","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"giV6URA9OQBvjmQGu9RaX7zh74BeZlfIt%2Fg5jmzngLYLf2aqf3xRXdVeqavEKzIeipWk60bfmZQ8UimHmb7N5iknwxlFXtMnrTCkSIxH%2Bcuj%2BJq48vod1qyZ74HgSLuzbobeAJAadRYl0jg5KbtFGQ%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$11.92","priceAmount":11.92,"currencySymbol":"$","integerValue":"11","decimalSeparator":".","fractionalValue":"92","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"giV6URA9OQBvjmQGu9RaX7zh74BeZlfImj6FH5GC3iHmCJbCdKsnHXMJ5iEU2SMlLS%2FtALhYdwdg7k%2BXeJJzmLTEdcoeyJQqCgCErsA0m8euixUzg2kTWc41LFrMNnqBZj9o%2BlO%2Bpguig4%2FPOHLJtjaCd8la1AkN%2B2f5kNv85pVnFSbdo4E47s0piFDQQkmN","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

You may have definite ideas about writing code when working alone, but team development requires that everyone use the same approach. With the JavaScript practices in this book―including code style, programming tips, and automation―you will learn how to write maintainable code that other team members can easily understand, adapt, and extend.

Author Nicholas Zakas assembled this collection of best practices as a front-end tech leader at Yahoo!, after completing his own journey from solo hacker to team player. He also includes rules recommended by other industry authorities. Use these tips and techniques to help your team set aside individual preferences and function at a higher level.

  • Establish specific code conventions for your team
  • Use tools such as JSLint and JSHint to keep your team on track
  • Adopt style guidelines, such as basic formatting, to help your team produce uniform code
  • Apply several programming practices to solve problems and improve code quality
  • Create an automated JavaScript build system using a variety of utilities
  • Integrate browser-based JavaScript testing with tools such as the YUI Test Selenium Driver


Amazon First Reads | Editors' picks at exclusive prices

Frequently bought together

This item: Maintainable JavaScript: Writing Readable Code
$27.69
Get it as soon as Friday, Nov 22
In Stock
Ships from and sold by Amazon.com.
+
$17.44
Get it as soon as Friday, Nov 22
In Stock
Ships from and sold by Amazon.com.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
spCSRF_Treatment
Choose items to buy together.

Editorial Reviews

About the Author

Nicholas C. Zakas is a front-end consultant, author, and speaker. He worked at Yahoo! for almost five years, where he was front-end tech lead for the Yahoo! homepage and a contributor to the YUI library. He is the author of Professional JavaScript for Web Developers (Wrox, 2012), Professional Ajax (Wrox, 2007), and High Performance JavaScript (O’Reilly, 2010). Nicholas is a strong advocate for development best practices including progressive enhancement, accessibility, performance, scalability, and maintainability. He blogs regularly at http://www.nczonline.net/ and can be found on Twitter via @slicknet.

Product details

  • Publisher ‏ : ‎ O'Reilly Media; 1st edition (July 3, 2012)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 238 pages
  • ISBN-10 ‏ : ‎ 1449327680
  • ISBN-13 ‏ : ‎ 978-1449327682
  • Item Weight ‏ : ‎ 14.2 ounces
  • Dimensions ‏ : ‎ 7 x 0.56 x 9.19 inches
  • Customer Reviews:
    4.2 4.2 out of 5 stars 45 ratings

About the author

Follow authors to get new release updates, plus improved recommendations.
Nicholas C. Zakas
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Nicholas C. Zakas is a front-end consultant who specializes in user interface design and implementation for web applications using JavaScript, Dynamic HTML, CSS, XML, and XSLT. Has has 15 years of web development experience and spent nearly five years at Yahoo! in various roles, including principal front end engineer for the Yahoo! homepage and contributor to the Yahoo! User Interface (YUI) library, having written the Cookie Utility, Profiler, and YUI Test.

Nicholas is the author of Professional JavaScript for Web Developers and High Performance JavaScript, a co-author on Professional Ajax, and a contributor to Even Faster Web Sites. He has also written for several online sites such as WebReference, Sitepoint, the YUI Blog, A List Apart, and the Web Performance Advent Calendar.

Nicholas regularly gives talks about web development, JavaScript, and best practices. He has given talks at companies such as Yahoo!, LinkedIn, Google, Netflix, TripAdvisor, and NASA, and conferences such as the Ajax Experience, the Rich Web Experience, OSCON, WebDirections, Fronteers, and Velocity.

Through his writing and speaking, Nicholas seeks to teach others the valuable lessons he’s learned while working on some of the most popular and demanding web applications in the world. He firmly believes that no difficult problem should need to be solved more than once.

Customer reviews

4.2 out of 5 stars
45 global ratings

Customers say

Customers find the book very good and easy to read. They appreciate its concise and understandable approach.

AI-generated from the text of customer reviews

Select to learn more
4 customers mention "Introductory value"4 positive0 negative

Customers find the book very good for introducing style guides and writing code. They say it's concise, easy to read, and understandable. Readers also appreciate the great organization tips to think about when writing in any language.

"...him on front-end masters, and continue to learn from his easy to understand approach to grasping some very difficult concepts." Read more

"Very good introductory to style guides...." Read more

"Very concise and easy to read. Lots of great organization tips to think about when writing in any language plus lots of JavaScript details that I..." Read more

"Not the book I was expecting but a nice reference for how to write code..." Read more

3 customers mention "Readability"3 positive0 negative

Customers find the book concise and easy to read.

"...practices should be followed in order the code to be scalable, readable and maintainable...." Read more

"...It is an easy read that had me checking bits of my code as a result...." Read more

"Very concise and easy to read...." Read more

Top reviews from the United States

Reviewed in the United States on October 7, 2013
This book is must read for every team that is working on bigger JavaScript project. The author
has that kind of experience, he worked in the development of the Yahoo page and explains what
practices should be followed in order the code to be scalable, readable and maintainable.

If you are experienced developer you may know the most of this stuff. I have experience in OO programing
but I am relatively new in JavaScript so this book helped me to understand some practices and principles
that are specific for JavaScript. In my opinion the part where the configuration for build, documentation
tools is explained can be shorten because you have the specific tool documentation for that.

If JavaScript team reads this book before beginning of the project and implements the advices and practices
written here it will have much easier job later in the project.
2 people found this helpful
Report
Reviewed in the United States on May 19, 2013
This book works well as a supplement to other more technical JavaScript books. It is an easy read that had me checking bits of my code as a result. Like others, such as "JavaScript: The Good Parts" by Douglas Crockford, you don't need to read front-to-back as the sections are self-contained and well indexed.
One person found this helpful
Report
Reviewed in the United States on October 25, 2016
Zakas is easily one of the best figures in front-end development, and specifically JavaScript. I recommend all of his books and various youtube videos as well. Heck, I even found him on front-end masters, and continue to learn from his easy to understand approach to grasping some very difficult concepts.
2 people found this helpful
Report
Reviewed in the United States on January 26, 2013
Few books leave you feeling tangibly better at practicing a computer language. This book is one of them. If you're not sure whether or not you have good habits and a good process for working on javascript projects, you will after completing this book.
2 people found this helpful
Report
Reviewed in the United States on March 21, 2014
Very good introductory to style guides. Also read "clean code" if you want more in depth style guidelines and don't have trouble reading java code.
2 people found this helpful
Report
Reviewed in the United States on July 23, 2013
I wanted something with a few more real world examples but I found the book to be like an english primer. telling me how the code should be written but with very basic examples that don get into the more complicated scenarios. If you are knew, read this to know how to format what you write and structure for longevity of the code base but don't expect to learn how to "write" code with it.
3 people found this helpful
Report
Reviewed in the United States on January 22, 2013
Very concise and easy to read. Lots of great organization tips to think about when writing in any language plus lots of JavaScript details that I had no idea about having mainly learned JavaScript through examples.
2 people found this helpful
Report
Reviewed in the United States on July 5, 2012
"Maintainable JavaScript" by Nicholas Zakas (O'Reilly 2012) is a very useful book for programmers who have just started writing javascript code or, for intermediate developers who would like to develop clean and maintainable code. The book is written in a very simple language that is easy to understand and follow.

As the title of the book suggests, the book is aimed at capturing the essential aspects of writing javascript code that is easy to maintain. I liked the flow of the book but I felt that the first few chapters in part 1 could be skipped if the reader is aware of the material.

In part 1 of the book (Style Guidelines), Zakas has given in-depth analysis of styling guidelines to follow that are sometimes skipped when writing large pieces of Javascript code. He touches upon styling guidelines such as: naming conventions, adding comments in the code, understanding the usage of semi-colons etc.,. Some good example use cases and the methodology of using the style guides is presented so that these ideas stick in your mind and become part of the programmers habits.

In part 2 (Programming Practices) - I especially liked the chapter 6 on `avoid global variables' since I have used global variables in my JavaScript but did not think through the caveats of using them. Similar to part 1 of the book, I liked the use cases that the author proposed to describe advantages and disadvantages of several programming aspects that are described in the section. In addition,one of the best described chapters in this section is the material on throwing your own errors (helping you to debug JavaScript code) which I do most of the time using firebug tool on Firefox. Even though this method works I might have to start using some of the techniques described by Zakas in the book, using fascade design pattern on top of objects that are not yours (very interesting outlook) etc.

Part 3 - I like this section a lot especially the material on minification, compression of JavaScript files as the script code adds time delay in loading of the page on the browser. Compression, minification techniques described by the author will definitely help with improving the load performance of the page in the browser.

Some of other things that would have helped me or any other intermediate JavaScript developer is inclusion of example or exercise files for some sections in `part 2'. Examples and exercise files would have helped the understanding of chapters 10, 11 and some sections in part 3 like chapter 17.

It is also interesting to know that author did make an attempt to include Html5 changes for JavaScript in some chapters of part 2 of the book.

I would recommend this book if you are an intermediate developer like me or novice developer for JavaScript code and would like to work towards methods for improving your code and writing a maintainable javascript code as this is book easy to understand and follow.
4 people found this helpful
Report

Top reviews from other countries

Translate all reviews to English
nockedlee76
5.0 out of 5 stars Five Stars
Reviewed in the United Kingdom on February 5, 2017
Very good book!
Racchio
5.0 out of 5 stars Utilissimo per i principianti.
Reviewed in Italy on August 4, 2015
Questo libro è breve, conciso ed utilissimo. Non vi insegnerà il linguaggio ma i modi migliori per scrivere codice pulito, leggibile e mantenibile. Se siete principianti vi sarà utilissimo e anche se siete esperti potrebbe darvi qualche interessante dritta.
Jo Segers
5.0 out of 5 stars Very good
Reviewed in Germany on December 16, 2013
This is a must read for any javascript programmer.

Its is written in a style that allows easy reading and everything is explained with good examples.
Willy Van den Driessche
4.0 out of 5 stars How to write good JavaScript and how to organize your code
Reviewed in France on September 27, 2012
I particularily liked this book. The author is a JavaScript veteran who has gone through all anti-patterns himself. The books teaches you a lot of reasonable conventions to stick to. In most of the cases the author carefully explains why doing it this or that way is actually the best idea. One of the shocking things is his advice "don't test aginst null". But if you read the chapter then it all makes sense. I actually learned a lot about the language while reading this book. I still don't like the language but now I can see how smart peaople have established conventions around the sometimes idiotic rules of the language. Finally, this book also talks about tools you can use to automate the testing and buildingof your Javascript files.