Maintainable JavaScript

Writing Readable Code

Specificaties
Paperback, 219 blz. | Engels
O'Reilly | 1e druk, 2012
ISBN13: 9781449327682
Rubricering
Hoofdrubriek : Computer en informatica
O'Reilly 1e druk, 2012 9781449327682
Verwachte levertijd ongeveer 16 werkdagen

Samenvatting

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'll 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

Specificaties

ISBN13:9781449327682
Taal:Engels
Bindwijze:paperback
Aantal pagina's:219
Uitgever:O'Reilly
Druk:1
Verschijningsdatum:22-6-2012

Inhoudsopgave

Introduction
Preface

Part 1: Style guidelines
1. Basic formatting
2. Comments
3. Statements and expressions
4. Variables, functions, and operators

Part 2: Programming practices
5. Loose coupling of UI layers
6. Avoid globals
7. Event handling
8. Avoid null comparisons
9. Separate configurations data from code
10. Throw your own errors
11. Don't modify objects you don't own
12. Browsers detection

Part 3: Automation
13. File and directory structure
14. Ant
15. Validation
16. Concatenation and baking
17. Minification and compression
18. Documentation
19. Automated testing
20. Putting it together

A: JavaScript Style Guide
B: JavaScript Tools

Index

Net verschenen

Rubrieken

Populaire producten

    Personen

      Trefwoorden

        Maintainable JavaScript