軟體架構 / Refactoring
重構是軟體開發過程中的一個實踐,目的是改進程式碼的結構和品質,同時保持其功能不變。透過重新編寫、重新組織和優化程式碼,我們可以提高程式碼的可讀性、可維護性和擴展性。
重構的目標是改善程式碼的內部結構,使其更容易理解、修改和擴充。這可能包括將長函式拆分成較小的函式、消除重複的程式碼、改善變數和函式的命名、優化程式碼的邏輯和流程等。在重構的過程中,保持程式碼的行為不變至關重要,並且需要透過測試確保在重構後的程式碼仍然正常運作。
重構的好處包括提高程式碼品質、減少程式碼錯誤、增加可維護性、降低開發成本和提高開發效率。它是一個持續的過程,可以隨著需求的變化和程式碼的演進進行。透過定期的重構,我們能夠保持程式碼的健康狀態,並促進團隊合作和協同開發。
相關書籍
-
90折
$1,620Five Lines of Code: How and When to Refactor (Paperback) -
90折
$1,710Good Code, Bad Code: Think Like a Software Engineer (Paperback) -
VIP 95折
Technical Debt in Practice: How to Find It and Fix It$1,540$1,463 -
A Holistic View of Software and Hardware Reuse: Dependable Reuse of Components and Systems$2,430$2,381 -
VIP 95折
The Joy of Debugging$1,950$1,853 -
VIP 95折
Demystified Object-Oriented Programming with C++: Implement proven object-oriented design principles to write better code and create robust software$1,690$1,606 -
VIP 95折
Clean Code in Python : Develop maintainable and efficient code, 2/e (Paperback)$1,830$1,739 -
85折
$1,998Refactoring at Scale: Regaining Control of Your Codebase -
Search-Based Software Engineering: 12th International Symposium, Ssbse 2020, Bari, Italy, October 7-8, 2020, Proceedings$3,570$3,499 -
Implementing Effective Code Reviews: How to Build and Maintain Clean Code$2,400$2,352 -
80折
$1,440Write Great Code, Volume 3: Engineering Software (Paperback) -
Change Request Impacts in Software Maintenance$3,380$3,312 -
80折
$1,216Seriously Good Software: Code That Works, Survives, and Wins -
VIP 95折
Sustainable Software Architecture: Analyze and Reduce Technical Debt$1,720$1,634 -
VIP 95折
Refactoring TypeScript$1,240$1,178 -
Managed Software Evolution$2,620$2,568 -
VIP 95折
Agile Technical Practices Distilled$1,240$1,178 -
90折
$1,440Managing Technical Debt: Reducing Friction in Software Development -
95折
$2,375Refactoring: Improving the Design of Existing Code, 2/e (Hardcover) -
Refinement: Semantics, Languages and Applications$2,430$2,381 -
VIP 95折
Software Design X-Rays: Fix Technical Debt with Behavioral Code Analysis$1,600$1,520 -
80折
$1,280Software Development, Design and Coding: With Patterns, Debugging, Unit Testing, and Refactoring -
Source Code Modularization: Theory and Techniques$2,430$2,381 -
VIP 95折
Understanding Software$1,030$979 -
VIP 95折
Exercises in Programming Style$8,660$8,227 -
Mastering Scale and Complexity in Software Reuse: 16th International Conference on Software Reuse, ICSR 2017, Salvador, Brazil, May 29-31, 2017, Proceedings (Lecture Notes in Computer Science)$2,430$2,381 -
90折
$788Building Maintainable Software, C# Edition: Ten Guidelines for Future-Proof Code (Paperback) -
90折
$2,052Re-Engineering Legacy Software (Paperback) -
Coding in Style$840$823 -
Zero Bugs and Program Faster$890$872