8 Tips To Write Clean Code - Refactoring Exercise

Описание к видео 8 Tips To Write Clean Code - Refactoring Exercise

Get the source code for this video for FREE → https://the-dotnet-weekly.ck.page/cle...
☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt
📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ
🚀 Support me on Patreon to access the source code:   / milanjovanovic  

Writing Clean code should be your goal when you sit in front of a keyboard. However, making your code clean is a matter of experience and practice. I will show you 8 tips to write clean code that I learned in my career.

Join my weekly .NET newsletter:
https://www.milanjovanovic.tech

Read my Blog here:
https://www.milanjovanovic.tech/blog

Subscribe for more:
   / @milanjovanovictech  

Chapters
0:00 Code Kata starting point
0:39 Tip 1 - Early Return Principle
2:33 Tip 2 - Merge multiple if statements
3:23 Tip 3 - Use LINQ Any instead of checking the Count
3:43 Tip 4 - Replace boolean expression with descriptive method
4:52 Tip 5 - Prefer throwing custom exceptions
8:16 Tip 6 - Replace magic numbers with a constant
9:31 Tip 7 - Replace magic strings with an enum
11:00 Tip 8 - Use a result object that conveys meaning

Комментарии

Информация по комментариям в разработке