Progress your career as a C# developer by using simple refactoring techniques. Write clean code
The refactoring techniques you learn in the Refactoring in C# course will also help you if you follow test-driven development practice. With TDD and its Red-Green-Refactor, refactoring comes at the end of each cycle. After you write your tests and your code, refactoring will turn that code into a production-ready code.
Once you improve your codebase, you will be faster and more productive. Throughout this course, you will see how to:
- Eliminate longer methods in your C# code
- Turn complex methods into its own C# classes
- Safely move methods and features between classes
- Remove if within an if within an if…. Kind of statements
- Simplify conditional statements
- Simplify method calls
- Turn long parameter lists into a separate class
- Remove unnecessary parameters
- Use the Null Object design pattern to eliminate if checks for null
- Use State or Strategy design pattern to eliminate switch statements
After you finish this Refactoring in C# course, you will know how to improve any C# code, no matter how complex it is.