Maintainable JavaScript
Writing Readable Code
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
Inhoudsopgave
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
Anderen die dit boek kochten, kochten ook
Net verschenen
Rubrieken
- aanbestedingsrecht
- aansprakelijkheids- en verzekeringsrecht
- accountancy
- algemeen juridisch
- arbeidsrecht
- bank- en effectenrecht
- bestuursrecht
- bouwrecht
- burgerlijk recht en procesrecht
- europees-internationaal recht
- fiscaal recht
- gezondheidsrecht
- insolventierecht
- intellectuele eigendom en ict-recht
- management
- mens en maatschappij
- milieu- en omgevingsrecht
- notarieel recht
- ondernemingsrecht
- pensioenrecht
- personen- en familierecht
- sociale zekerheidsrecht
- staatsrecht
- strafrecht en criminologie
- vastgoed- en huurrecht
- vreemdelingenrecht