Maintainable JavaScript (Paperback)

Nicholas C. Zakas

  • 出版商: O'Reilly
  • 出版日期: 2012-07-03
  • 定價: $1,400
  • 售價: 9.5$1,330
  • 語言: 英文
  • 頁數: 242
  • 裝訂: Paperback
  • ISBN: 1449327680
  • ISBN-13: 9781449327682
  • 相關分類: JavaScript
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

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

商品描述(中文翻譯)

你可能在獨自工作時對於編寫程式碼有明確的想法,但團隊開發需要每個人使用相同的方法。透過本書中的JavaScript實踐,包括代碼風格、編程技巧和自動化,您將學習如何編寫易於理解、適應和擴展的可維護代碼,以便團隊成員能夠輕鬆理解。

作者Nicholas Zakas在雅虎擔任前端技術領導者期間,根據自己從獨立黑客到團隊合作者的經歷,整理了這些最佳實踐。他還包括其他行業權威推薦的規則。使用這些提示和技巧,幫助您的團隊擺脫個人偏好,提升工作水平。

以下是一些建議:

- 為您的團隊建立具體的代碼慣例
- 使用JSLint和JSHint等工具來保持團隊的正確方向
- 採用樣式指南,例如基本格式設定,以幫助團隊生成統一的代碼
- 應用多種編程實踐來解決問題並提高代碼質量
- 使用各種工具創建自動化的JavaScript構建系統
- 將基於瀏覽器的JavaScript測試與YUI Test Selenium Driver等工具集成在一起