軟體架構 / Refactoring
重構是軟體開發過程中的一個實踐,目的是改進程式碼的結構和品質,同時保持其功能不變。透過重新編寫、重新組織和優化程式碼,我們可以提高程式碼的可讀性、可維護性和擴展性。
重構的目標是改善程式碼的內部結構,使其更容易理解、修改和擴充。這可能包括將長函式拆分成較小的函式、消除重複的程式碼、改善變數和函式的命名、優化程式碼的邏輯和流程等。在重構的過程中,保持程式碼的行為不變至關重要,並且需要透過測試確保在重構後的程式碼仍然正常運作。
重構的好處包括提高程式碼品質、減少程式碼錯誤、增加可維護性、降低開發成本和提高開發效率。它是一個持續的過程,可以隨著需求的變化和程式碼的演進進行。透過定期的重構,我們能夠保持程式碼的健康狀態,並促進團隊合作和協同開發。
相關書籍
-
VIP 95折
$1,800$1,710 -
VIP 95折
$1,770$1,682 -
VIP 95折
$2,050$1,948 -
VIP 95折
$1,800$1,710 -
VIP 90折
$2,166$2,052 -
90折
$2,115Refactoring at Scale: Regaining Control of Your Codebase
-
80折
$1,260Refactoring Legacy T-SQL for Improved Performance: Modern Practices for SQL Server Applications
-
95折
$2,375Refactoring: Improving the Design of Existing Code, 2/e (Hardcover)
-
80折
$1,280Software Development, Design and Coding: With Patterns, Debugging, Unit Testing, and Refactoring
-
90折
$1,485Refactoring JavaScript: Turning Bad Code Into Good Code
-
90折
$972CSS Refactoring: Architect Your Stylesheets for Success (Paperback)
-
VIP 95折
$2,450$2,328 -
VIP 95折
$1,575$1,496 -
VIP 95折
$2,040$1,938 -
60折
$1,188Professional Refactoring in C# & ASP.NET (Paperback)
-
50折
$825Refactoring SQL Applications (污漬)
-
VIP 95折
$1,480$1,406 -
50折
$620Professional Ruby Collection: Mongrel, Rails Plugins, Rails Routing, Refactoring to REST, and Rubyisms CD1
-
85折
$1,683Refactoring in Large Software Projects: Performing Complex Restructurings Successfully
-
95折
$2,161Refactoring Databases: Evolutionary Database Design (Hardcover)
-
VIP 90折
$1,093$1,035 -
VIP 95折
$1,520$1,444 -
95折
$2,176Refactoring: Improving the Design of Existing Code (Hardcover)
-
85折
$1,891AntiPatterns: Refactoring Software, Architectures, and Projects in Crisis (Paperback)