軟體架構 / Refactoring
重構是軟體開發過程中的一個實踐,目的是改進程式碼的結構和品質,同時保持其功能不變。透過重新編寫、重新組織和優化程式碼,我們可以提高程式碼的可讀性、可維護性和擴展性。
重構的目標是改善程式碼的內部結構,使其更容易理解、修改和擴充。這可能包括將長函式拆分成較小的函式、消除重複的程式碼、改善變數和函式的命名、優化程式碼的邏輯和流程等。在重構的過程中,保持程式碼的行為不變至關重要,並且需要透過測試確保在重構後的程式碼仍然正常運作。
重構的好處包括提高程式碼品質、減少程式碼錯誤、增加可維護性、降低開發成本和提高開發效率。它是一個持續的過程,可以隨著需求的變化和程式碼的演進進行。透過定期的重構,我們能夠保持程式碼的健康狀態,並促進團隊合作和協同開發。
相關書籍
-
79折
$327代碼不朽:編寫可維護軟件的 10大要則 (Java版) -
79折
$327代碼不朽:編寫可維護軟件的 10大要則 (Java版) -
90折
$788Building Maintainable Software, C# Edition: Ten Guidelines for Future-Proof Code (Paperback) -
78折
我的程式碼會說話 (暢銷回饋版)$260$203 -
90折
$2,052Re-Engineering Legacy Software (Paperback) -
VIP 95折
Continuous Architecture: Sustainable Architecture in an Agile and Cloud-Centric World (Paperback)$2,180$2,071 -
VIP 95折
Beyond Legacy Code: Nine Practices to Extend the Life (and Value) of Your Software (Paperback)$1,500$1,425 -
78折
大話重構$390$304 -
75折
$311重構:改善既有代碼的設計 (簡中平裝版) (Refactoring: Improving The Design of Existing Code) -
27折
$399Your Code as a Crime Scene: Use Forensic Techniques to Arrest Defects, Bottlenecks, and Bad Design in Your Programs (Paperback) -
VIP 95折
Refactoring for Software Design Smells: Managing Technical Debt (Paperback)$2,550$2,423 -
VIP 95折
The Mikado Method (Paperback)$1,485$1,411 -
85折
$403重構與模式 (Refactoring to Patterns) -
VIP 95折
Reengineering .NET: Injecting Quality, Testability, and Architecture into Existing Systems (Paperback)$1,650$1,568 -
VIP 90折
The Art of Readable Code (Paperback)$1,710$1,620 -
VIP 95折
Static Analysis of Software: The Abstract Interpretation (Hardcover)$6,180$5,871 -
VIP 95折
The Clean Coder: A Code of Conduct for Professional Programmers (Paperback)$1,850$1,758 -
80折
$1,320Managing Software Debt: Building for Inevitable Change (Hardcover) -
80折
$1,488Managing Software Debt: Building for Inevitable Change (Paperback) -
VIP 95折
Flexible, Reliable Software: Using Patterns and Agile Development (Hardcover)$2,780$2,641 -
VIP 95折
Refactoring in Ruby (Paperback)$1,575$1,496 -
VIP 95折
Refactoring: Ruby Edition: Ruby Edition (Addison-Wesley Professional Ruby Series)$2,040$1,938 -
VIP 95折
Growing Object-Oriented Software, Guided by Tests (Paperback)$2,160$2,052 -
80折
$2,024Why Programs Fail, 2/e: A Guide to Systematic Debugging (Paperback) -
60折
$1,188Professional Refactoring in C# & ASP.NET (Paperback) -
50折
$825Refactoring SQL Applications (污漬) -
60折
$1,188Clean Code: A Handbook of Agile Software Craftsmanship (Paperback) -
80折
$1,488Emergent Design: The Evolutionary Nature of Professional Software Development (Hardcover) -
85折
$1,683Refactoring in Large Software Projects: Performing Complex Restructurings Successfully -
VIP 90折
Prefactoring (Paperback)$1,093$1,035