Get the source code for this video for FREE → [ Ссылка ]
☄️ Master the Modular Monolith Architecture: [ Ссылка ]
📌 Accelerate your Clean Architecture skills: [ Ссылка ]
🚀 Support me on Patreon to access the source code: [ Ссылка ]
Check out my courses: [ Ссылка ]
Refactoring is a technique for restructuring existing code without changing its behavior. You can think of refactoring as a series of small code transformations. One change (refactoring) does little. But a sequence of refactors produces a significant transformation. There's no better way to learn refactoring than practicing. So, I prepared a refactoring exercise for you. Today, I'm going to refactor some poorly written code. And I'll show you 5 awesome refactoring techniques along the way:
- Extract method
- Extract interface
- Extract class
- Functional code
- Pushing logic down
5 Awesome C# Refactoring Tips
[ Ссылка ]
Join my weekly .NET newsletter:
[ Ссылка ]
Read my Blog here:
[ Ссылка ]
Chapters
0:00 Starting point
2:52 Refactoring the Validation logic
6:15 Refactoring towards Dependency Injection
8:01 Refactoring the Calculation logic
15:57 Wrapping up the Refactoring
16:51 Running the tests after Refactoring
18:07 A few more improvement points
5 Awesome Refactoring Tips To Clean Up Your Code
Теги
refactoringrefactoring crefactoring .netrefactoring tutorialrefactoring clean codeclean codeclean codingrefactoring demorefactoring examplerefactoring exerciserefactoring tipsrefactoring practicerefactoring katacoding katac katac coding katarefactoring samplerefactoring explainedtips to write clean coderefactoring codehow to write clean codeclean code explainedwrite cleaner codetips for clean codehow to write better code