filmov
tv
Design Patterns: Don't Repeat Yourself in C#
Показать описание
Have you ever heard the term DRY, as in "Keep your code DRY"? DRY refers to one of the foundational design principles in programming. It stands for Don't Repeat Yourself. On the surface, that sounds so easy to do. However, as you will see in this video, there is a lot to think through when trying to get this right. From thinking through where to put code to ensuring that you don't repeat yourself in testing and bug fixing, there is a lot beneath the surface of simply keeping code DRY.
0:00 - Intro
0:53 - recognize and anticipate repetition in your code
4:44 - create a discrete method and make it independent
7:40 - class library - why and how to
16:05 - bringing the class library into other projects
21:55 - briefly on updating dll files - NuGet packages
22:28 - DRY in development work - unit tests (crash course)
41:51 - how to make the class library more versatile - consider .NET Standard
44:47 - video summary
46:32 - how far to take DRY: general tips
Комментарии