C# Refactoring Tips and Tricks
43mBeginner2023-09-26
Authors

Jesse Freeman
Head of Partner and Framework Marketing at Amazon
Course details
Refactoring code makes it cleaner, more performant, and readable. It eliminates unused functionality, renames and reorganizes elements to make their purpose clearer, and allows for more abstraction. This course provides C# developers with tips and tricks for refactoring existing codebases. Learn how to create a baseline for your project to back up and track the results of your work, and start removing unused code. Discover how to refactor along branches and use popular refactoring techniques, including Rename Method, Extract Method, and Encapsulate Field. Learn how to optimize code by avoiding loops, simplifying math, and inlining code, and create cleaner code that emphasizes readability. Plus, get tips on packaging and distributing refactored libraries as APIs.
Learning objectives
Creating a baseline
Removing unused code
Refactoring in branches
Using refactoring tools
Optimizing code
Creating clean code
Learning objectives
Creating a baseline
Removing unused code
Refactoring in branches
Using refactoring tools
Optimizing code
Creating clean code
Skills covered
C#Tips, Tricks, & TechniquesProgramming LanguagesMicrosoftSoftware Development
Concepts
0. Introduction
- 01 - Welcome
- 02 - What you should know
- 03 - What is refactoring
1. Refactoring Strategies
- 04 - Create a baseline
- 05 - Incremental steps
- 06 - Remove unused code
- 07 - Improve performance
2. Before You Refactor
- 08 - Use version control
- 09 - Refactor in branches
- 10 - Tools for refactoring
3. Optimizing Code
- 11 - Identify problem areas
- 12 - Common optimizations
- 13 - Inlining code
4. Creating Clean Code
- 14 - Code readability
- 15 - Extract methods
- 16 - Create clean APIs
Conclusion
- 17 - Next steps