Design Patterns: Don't Repeat Yourself in C#
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
Видео Design Patterns: Don't Repeat Yourself in C# канала IAmTimCorey
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
Видео Design Patterns: Don't Repeat Yourself in C# канала IAmTimCorey
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Top 10 C# Best Practices (plus bonuses)Design Patterns: Open Closed Principle Explained Practically in C# (The O in SOLID)Strategy Pattern – Design Patterns (ep 1)C# Generics - What they are, why they are useful, and how to create themHow Do I Get a C# Developer Job? How Do I Prepare? Do I Need a Portfolio?The Singleton Design Pattern - Part of the Gang of FourIntro to Bootstrap in ASP.NET MVCC# Async / Await - Make your app more responsive and faster with asynchronous programmingSQL Data Tools In C# - Database Creation, Management, and Deployment in Visual StudioTop 10 Hidden Gems in Visual Studio - Speed Up Development Without Increasing Your CostsDesign Patterns: Interface Segregation Principle Explained Practically in C# (The I in SOLID)Working With The File System in C# - Managing Folders and Files.NET Core vs .NET Framework - What's the difference?Handling Exceptions in C# - When to catch them, where to catch them, and how to catch themDesign Patterns: Single Responsibility Principle Explained Practically in C# (The S in SOLID)Design Patterns: Liskov Substitution Principle Explained Practically in C# (The L in SOLID)Dynamic Vs Var in C#Repository Pattern with C# and Entity Framework, Done Right | Mosh