Design Patterns: Don't Repeat Yourself in C#

Share
Embed
  • Loading...
  • Published on:  Monday, October 22, 2018
  • Video Sponsor: PVS-Studio: https://bit.ly/2PeCS2v

    Newsletter signup (with exclusive discounts): https://signup.iamtimcorey.com/ (your email will be kept safe and you will not be spammed).
    Source Code: https://leadmagnets.app/?Resource=DRY

    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
  • Source: https://youtu.be/dhnsegiPXoo
Loading...

Comment