Refactoring JavaScript: Turning Bad Code Into Good Code
暫譯: 重構 JavaScript:將壞程式碼轉變為好程式碼
Evan Burchard
- 出版商: O'Reilly
- 出版日期: 2017-05-02
- 定價: $1,650
- 售價: 9.0 折 $1,485
- 語言: 英文
- 頁數: 442
- 裝訂: Paperback
- ISBN: 1491964928
- ISBN-13: 9781491964927
-
相關分類:
JavaScript
-
相關翻譯:
重構 JavaScript (Refactoring JavaScript: Turning Bad Code Into Good Code) (繁中版)
立即出貨
買這商品的人也買了...
-
大話設計模式$620$490 -
$990JavaScript Cookbook, 2/e (Paperback) -
精通 Python|運用簡單的套件進行現代運算 (Introducing Python: Modern Computing in Simple Packages)$780$616 -
完整學會 Git, GitHub, Git Server 的24堂課$360$284 -
你所不知道的 JS|導讀,型別與文法 (You Don't Know JS: Up & Going)$520$411 -
$403解析深度學習 : 語音識別實踐 -
你所不知道的 JS|非同步處理與效能 (You Don't Know JS: Async & Performance)$520$411 -
超圖解 Arduino 互動設計入門, 3/e$680$578 -
Python 自動化的樂趣|搞定重複瑣碎 & 單調無聊的工作 (中文版) (Automate the Boring Stuff with Python: Practical Programming for Total Beginners)$500$425 -
演算法技術手冊, 2/e (Algorithms in a Nutshell: A Practical Guide, 2/e)$580$458 -
你所不知道的 JS|ES6 與未來發展 (You Don't Know JS: ES6 & Beyond)$520$411 -
圖解雲端技術|基礎架構x運作原理 x API$480$379 -
Google Cloud 雲端平台實作手冊 ─ Google雲端功能一點就通$380$296 -
Visual C# 2017 基礎必修課 (適用2017/2015,附範例光碟)$530$419 -
TensorFlow + Keras 深度學習人工智慧實務應用$590$460 -
$1,575Practical Modern JavaScript: Dive into ES6 and the future of JavaScript -
前端開發的涅槃:React 全面昇華你的 FrontEnd 境界$540$459 -
寫程式前就該懂的演算法 ─ 資料分析與程式設計人員必學的邏輯思考術 (Grokking Algorithms: An illustrated guide for programmers and other curious people)$390$308 -
打造可維護軟體|編寫可維護程式碼的10項法則 (C#版) (Building Maintainable Software, C# Edition: Ten Guidelines for Future-Proof Code)$450$356 -
最符合人腦的解讀方式:用 d3.js 完成網頁視覺化$540$459 -
Python 初學特訓班 (增訂版) (附250分鐘影音教學/範例程式)$480$379 -
7天學會大數據資料處理—NoSQL:MongoDB入門與活用, 2/e$400$312 -
Deep Learning|用 Python 進行深度學習的基礎理論實作$580$458 -
看板實戰 : 用一張便利貼訓練出100分高效率工作團隊 (Kanban in Action)$560$476 -
$1,575Mastering Modular JavaScript (Paperback)
相關主題
商品描述
How often do you hear people say things like this? "Our JavaScript is a mess, but we’re thinking about using [framework of the month]."
Like it or not, JavaScript is not going away. No matter what framework or ”compiles-to-js” language or library you use, bugs and performance concerns will always be an issue if the underlying quality of your JavaScript is poor. Rewrites, including porting to the framework of the month are terribly expensive and unpredictable. The bugs won’t magically go away, and can happily reproduce themselves in a new context. To complicate things further, features will get dropped, at least temporarily.
The other popular method of fixing your JS is playing “JavaScript Jenga,” where each developer slowly and carefully takes their best guess at how the out-of-control system can be altered to allow for new features, hoping that this doesn’t bring the whole stack of blocks down. This book provides clear guidance on how best to avoid these pathological approaches to writing JavaScript:
- Recognize you have a problem with your JavaScript quality.
- Forgive the code you have now, and the developers who made it.
- Learn repeatable, memorable, and time-saving refactoring techniques.
- Apply these techniques as you work, fixing things along the way.
- Internalize these techniques, and avoid writing as much problematic code to begin with.
Bad code doesn’t have to stay that way. And making it better doesn’t have to be intimidating or unreasonably expensive.
商品描述(中文翻譯)
你多久會聽到人們這樣說話?「我們的 JavaScript 一團糟,但我們正在考慮使用 [當月框架]。」
不管喜不喜歡,JavaScript 不會消失。無論你使用什麼框架或「編譯成 JS」的語言或庫,如果你的 JavaScript 基本質量差,錯誤和性能問題將始終存在。重寫,包括移植到當月框架,都是非常昂貴且不可預測的。錯誤不會神奇地消失,並且可以在新的上下文中愉快地重現。更複雜的是,某些功能將會被刪除,至少是暫時的。
修復你的 JS 的另一種流行方法是玩「JavaScript Jenga」,每位開發者慢慢而小心地猜測如何改變這個失控的系統以允許新功能,希望這不會使整個積木堆倒塌。本書提供了清晰的指導,幫助你避免這些病態的 JavaScript 寫作方法:
- 認識到你的 JavaScript 質量存在問題。
- 原諒你現在的代碼和編寫它的開發者。
- 學習可重複、易記且節省時間的重構技術。
- 在工作中應用這些技術,隨時修正問題。
- 內化這些技術,避免一開始就寫出過多有問題的代碼。
糟糕的代碼不必一直這樣。而改善它也不必讓人感到畏懼或不合理地昂貴。
