Skip to Content
重構 JavaScript
book

重構 JavaScript

by Evan Burchard
June 2018
Beginner to intermediate
464 pages
8h 43m
Chinese
GoTop Information, Inc.

Overview

改善不良程式碼

「我喜歡這本書的原因是,它系統性地陳述了重構是什麼以及不是什麼。這樣的聚焦觀點,幫助開發者在不改變程式碼行為的前提下提高品質,是每個JS開發者必備的資訊。這本書必讀。」
—Kyle Simpson(“getify”)
JavaScript 導師

「重構JavaScipt為改進你的JavaScript程式碼指出了清晰的方向。這本書討論重構的工具和技巧,以及如何在不改變程式碼行為的前提下修改程式碼。全書中皆穿插附導引的範例,帶領讀者悠遊於重構程式碼所會涉入的複雜性之中。」
—Steven Suehring教授
威斯康辛大學史蒂芬斯角分校

如果你的JavaScript程式碼是一團亂,那麼各種框架對你的幫助也實在有限。不管你使用什麼框架、編譯至JavaScript的語言或是函式庫,如果你的JavaScript品質堪憂,那臭蟲跟效能問題依舊無法被緩解。跟隨這本實務性的指南,你將學習到如何透過測試與重構程式碼來減少複雜度及增加可讀性,並且從現有的程式庫(codebase)取得信心。

作者Evan Burchard將為你展示如何識別出不良的程式碼,並帶你見識數種重構的方法來對它們進行改良,這些技巧從最簡單的重命名變數一直到引入函數式與物件導向程式設計。如果你渴望寫出更優秀的JavaScript程式碼(不管是前端還是後端),一定會需要這本書。

‧在不改變程式碼行為的前提下,利用重構來重新組織程式碼
‧理解重構與程式碼品質之間的關係
‧探索現今使用的各種JavaScript版本
‧建立自動化測試來確認程式碼正確,並找到那些被忽略的臭蟲
‧學習如何重構簡單的JavaScript結構、函式、物件
‧引入物件導向與函數式程式設計來重構你的代碼庫
‧研究重構異步JavaScript的方法

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

JavaScript 权威指南(原书第7版)

JavaScript 权威指南(原书第7版)

David Flanagan
Your First Week With Node.js, 2nd Edition

Your First Week With Node.js, 2nd Edition

James Hibbard, Craig Buckler, Mark Brown, Nilson Jacques, James Kolce, Paul Orac, M. David Green, Florian Rappl

Publisher Resources

ISBN: 9789864766826