軟體架構 / Refactoring
重構是軟體開發過程中的一個實踐,目的是改進程式碼的結構和品質,同時保持其功能不變。透過重新編寫、重新組織和優化程式碼,我們可以提高程式碼的可讀性、可維護性和擴展性。
重構的目標是改善程式碼的內部結構,使其更容易理解、修改和擴充。這可能包括將長函式拆分成較小的函式、消除重複的程式碼、改善變數和函式的命名、優化程式碼的邏輯和流程等。在重構的過程中,保持程式碼的行為不變至關重要,並且需要透過測試確保在重構後的程式碼仍然正常運作。
重構的好處包括提高程式碼品質、減少程式碼錯誤、增加可維護性、降低開發成本和提高開發效率。它是一個持續的過程,可以隨著需求的變化和程式碼的演進進行。透過定期的重構,我們能夠保持程式碼的健康狀態,並促進團隊合作和協同開發。
相關書籍
- 
  
       VIP 95折
  Domain-Driven Refactoring: A hands-on DDD guide to transforming monoliths into modular systems and microservices (Paperback) VIP 95折
  Domain-Driven Refactoring: A hands-on DDD guide to transforming monoliths into modular systems and microservices (Paperback)$1,500$1,425
- 
  
       VIP 95折
  Looks Good to Me: Constructive Code Reviews VIP 95折
  Looks Good to Me: Constructive Code Reviews$1,750$1,663
- 
  
       79折
  先整理一下?|個人層面的軟體設計考量 (Tidy First?: A Personal Exercise in Empirical Software Design) 79折
  先整理一下?|個人層面的軟體設計考量 (Tidy First?: A Personal Exercise in Empirical Software Design)$480$379
- 
  
       VIP 95折
  軟件開發中的決策:權衡與取捨 VIP 95折
  軟件開發中的決策:權衡與取捨$599$569
- 
  
       79折
  這樣寫 code 好不好?辨識、分析、改善,寫出易讀易維護的程式碼 79折
  這樣寫 code 好不好?辨識、分析、改善,寫出易讀易維護的程式碼$630$498
- 
  
       79折
  $331整潔代碼的藝術 79折
  $331整潔代碼的藝術
- 
  
       79折
  Clean Code 錦囊妙計 (Clean Code Cookbook : Recipes to Improve the Design and Quality of Your Code) 79折
  Clean Code 錦囊妙計 (Clean Code Cookbook : Recipes to Improve the Design and Quality of Your Code)$880$695
- 
  
       78折
  重構:改善 .NET 與 C# 應用程式的設計,償還欠下的技術債 (使用 GitHub Copilot 與 Visual Studio) (Refactoring with C#: Safely improve .NET applications and pay down technical debt with Visual Studio, .NET 8, and C# 12) 78折
  重構:改善 .NET 與 C# 應用程式的設計,償還欠下的技術債 (使用 GitHub Copilot 與 Visual Studio) (Refactoring with C#: Safely improve .NET applications and pay down technical debt with Visual Studio, .NET 8, and C# 12)$850$663
- 
  
       79折
  程式設計守則|如何寫出更好的程式碼 (The Rules of Programming: How to Write Better Code) 79折
  程式設計守則|如何寫出更好的程式碼 (The Rules of Programming: How to Write Better Code)$620$490
- 
  
       VIP 95折
  Refactoring in Java: Improving code design and maintainability for Java developers VIP 95折
  Refactoring in Java: Improving code design and maintainability for Java developers$1,770$1,682
- 
  
       VIP 95折
  編程智慧:程式設計鬼才的經驗與思考 VIP 95折
  編程智慧:程式設計鬼才的經驗與思考$594$564
- 
  
       90折
  $1,305Tidy First? A Personal Exercise in Empirical Software Design (Paperback) 90折
  $1,305Tidy First? A Personal Exercise in Empirical Software Design (Paperback)
- 
  
       VIP 95折
  Refactoring with C#: Safely improve .NET applications and pay down technical debt with Visual Studio, .NET 8, and C# 12 (Paperback) VIP 95折
  Refactoring with C#: Safely improve .NET applications and pay down technical debt with Visual Studio, .NET 8, and C# 12 (Paperback)$2,050$1,948
- 
  
       90折
  $1,980Clean Code Cookbook: Recipes to Improve the Design and Quality of Your Code (Paperback) 90折
  $1,980Clean Code Cookbook: Recipes to Improve the Design and Quality of Your Code (Paperback)
- 
  
       79折
  重構的時機與實作|五行程式碼規則 (Five Lines of Code: How and When to Refactor) 79折
  重構的時機與實作|五行程式碼規則 (Five Lines of Code: How and When to Refactor)$680$537
- 
  
       78折
  精通無瑕程式碼:工程師也能斷捨離!消除複雜度、提升效率的 17個關鍵技法 (The Art of Clean Code: Best Practices to Eliminate Complexity and Simplify Your Life) 78折
  精通無瑕程式碼:工程師也能斷捨離!消除複雜度、提升效率的 17個關鍵技法 (The Art of Clean Code: Best Practices to Eliminate Complexity and Simplify Your Life)$600$468
- 
  
       79折
  $465重構的時機和方法 79折
  $465重構的時機和方法
- 
  
       VIP 95折
  Test-Driven Development with Java: Create higher-quality software by writing tests first with SOLID and hexagonal architecture VIP 95折
  Test-Driven Development with Java: Create higher-quality software by writing tests first with SOLID and hexagonal architecture$1,700$1,615
- 
  
       79折
  Code That Fits in Your Head|軟體工程的啟發式方法 79折
  Code That Fits in Your Head|軟體工程的啟發式方法$580$458
- 
  
       VIP 95折
  Deciphering Object-Oriented Programming with C++: A practical, in-depth guide to implementing object-oriented design principles to create robust code VIP 95折
  Deciphering Object-Oriented Programming with C++: A practical, in-depth guide to implementing object-oriented design principles to create robust code$1,800$1,710
- 
  
       90折
  $1,350The Art of Clean Code: Best Practices to Eliminate Complexity and Simplify Your Life (Paperback) 90折
  $1,350The Art of Clean Code: Best Practices to Eliminate Complexity and Simplify Your Life (Paperback)
- 
  
       80折
  $1,480Skills of a Successful Software Engineer (Paperback) 80折
  $1,480Skills of a Successful Software Engineer (Paperback)
- 
  
       79折
  Good Code, Bad Code|寫出高品質的程式碼 (Good Code, Bad Code: Think Like a Software Engineer) 79折
  Good Code, Bad Code|寫出高品質的程式碼 (Good Code, Bad Code: Think Like a Software Engineer)$520$411
- 
  
       85折
  $509軟件設計:從專業到卓越 85折
  $509軟件設計:從專業到卓越
- 
  
       90折
  $1,620Street Coder: The Rules to Break and How to Break Them 90折
  $1,620Street Coder: The Rules to Break and How to Break Them
- 
  
       95折
  $1,501Code That Fits in Your Head: Heuristics for Software Engineering 95折
  $1,501Code That Fits in Your Head: Heuristics for Software Engineering
- 
  
       95折
  $1,976Clean Craftsmanship: Disciplines, Standards, and Ethics (Paperback) 95折
  $1,976Clean Craftsmanship: Disciplines, Standards, and Ethics (Paperback)
- 
  
       90折
  $1,620Five Lines of Code: How and When to Refactor (Paperback) 90折
  $1,620Five Lines of Code: How and When to Refactor (Paperback)
- 
  
       90折
  $1,620Five Lines of Code: How and When to Refactor (Paperback) 90折
  $1,620Five Lines of Code: How and When to Refactor (Paperback)
- 
  
       78折
  設計重構:25個管理技術債的技巧消除軟體設計臭味 (Refactoring for Software Design Smells: Managing Technical Debt) 78折
  設計重構:25個管理技術債的技巧消除軟體設計臭味 (Refactoring for Software Design Smells: Managing Technical Debt)$520$406