Maintainable JavaScript: Writing Readable Code

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
1109541641
Maintainable JavaScript: Writing Readable Code

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
33.99 In Stock
Maintainable JavaScript: Writing Readable Code

Maintainable JavaScript: Writing Readable Code

by Nicholas C. Zakas
Maintainable JavaScript: Writing Readable Code

Maintainable JavaScript: Writing Readable Code

by Nicholas C. Zakas

eBook

$33.99 

Available on Compatible NOOK devices, the free NOOK App and in My Digital Library.
WANT A NOOK?  Explore Now

Related collections and offers


Overview

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

Product Details

ISBN-13: 9781449328122
Publisher: O'Reilly Media, Incorporated
Publication date: 05/10/2012
Sold by: Barnes & Noble
Format: eBook
Pages: 242
File size: 1 MB

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.

Table of Contents

Introduction


Preface


Style Guidelines


Chapter 1: Basic Formatting


Chapter 2: Comments


Chapter 3: Statements and Expressions


Chapter 4: Variables, Functions, and Operators




Programming Practices


Chapter 5: Loose Coupling of UI Layers


Chapter 6: Avoid Globals


Chapter 7: Event Handling


Chapter 8: Avoid Null Comparisons


Chapter 9: Separate Configuration Data from Code


Chapter 10: Throw Your Own Errors


Chapter 11: Don’t Modify Objects You Don’t Own


Chapter 12: Browser Detection




Automation


Chapter 13: File and Directory Structure


Chapter 14: Ant


Chapter 15: Validation


Chapter 16: Concatenation and Baking


Chapter 17: Minification and Compression


Chapter 18: Documentation


Chapter 19: Automated Testing


Chapter 20: Putting It Together




JavaScript Style Guide


JavaScript Tools


Colophon
From the B&N Reads Blog

Customer Reviews