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…mehr
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 DriverHinweis: Dieser Artikel kann nur an eine deutsche Lieferadresse ausgeliefert werden.
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.
Inhaltsangabe
1. Introduction 2. Preface 3. Style Guidelines * Chapter 1: Basic Formatting * Chapter 2: Comments * Chapter 3: Statements and Expressions * Chapter 4: Variables, Functions, and Operators 4. 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 5. 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 6. JavaScript Style Guide 7. JavaScript Tools 8. Colophon