У нас вы можете посмотреть бесплатно Introduction to SOLID Principles using C# или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Learn how to write clean, maintainable, and scalable code with the SOLID Principles in C#! 💡💻 In this beginner-friendly tutorial, we’ll break down these essential design principles and show you how to apply them in your projects. Here’s what you’ll learn: ✅ What are the SOLID principles and why are they important? ✅ The Single Responsibility Principle (SRP) ✅ The Open/Closed Principle (OCP) ✅ The Liskov Substitution Principle (LSP) Chapters 0:00 - Introduction [Music] Welcome to Living the Logic, today we’ll explore SOLID principles with C# through a basic e-commerce system example. 0:13 - What is SOLID? Explanation of the SOLID principles in object-oriented design. 0:33 - S: Single Responsibility Principle (SRP) Each class should have one and only one reason to change. 1:03 - O: Open-Closed Principle (OCP) Classes should be open for extension but closed for modification. 1:33 - L: Liskov Substitution Principle (LSP) Derived classes must be substitutable for their base classes. 2:20 - I: Interface Segregation Principle (ISP) Clients should not be forced to depend on methods they don’t use. 2:54 - D: Dependency Inversion Principle (DIP) High-level modules should depend on abstractions, not on low-level modules. 3:30 - Setting Up the E-Commerce Application Creating a new project in Visual Studio 2022 to implement the SOLID principles. 4:32 - Implementing Single Responsibility Principle (SRP) Creating a Product class and a ProductRepository class to separate responsibilities. 8:05 - Implementing Open-Closed Principle (OCP) Creating a Discount interface and two classes to apply different discount strategies. 12:04 - Implementing Liskov Substitution Principle (LSP) Using inheritance to demonstrate substitutability in product service. 15:07 - Implementing Interface Segregation Principle (ISP) Creating specialized interfaces for printing and emailing, and their implementations. 18:15 - Implementing Dependency Inversion Principle (DIP) Using dependency injection in a NotificationService to abstract dependencies. 21:19 - Putting It All Together Demonstrating how all the principles work together in the e-commerce system. 23:40 - Recap: SRP & OCP in Action Explaining how the single responsibility and open-closed principles are applied with product and service examples. 24:55 - Demonstrating LSP Showing how the ProductService works with both NoDiscount and PercentageDiscount classes. 25:56 - Conclusion and Next Steps Final thoughts on applying SOLID principles and maintaining clean, scalable code. 26:03 - Introducing Discount Types and List C Substitution Principle Explaining the creation of different discount types and showing the flexibility of substituting discount types without breaking functionality. 26:50 - Implementing the Liskov Substitution Principle (LSP) Demonstrating how you can switch between different discount types (like percentage discount or no discount) while maintaining the system's integrity. 27:29 - Interface Segregation Principle (ISP) Explaining the importance of keeping interfaces separate so that clients don't need to implement unnecessary methods. 28:00 - Demonstrating Dependency Inversion Principle (DIP) Using the Notification Service with different dependencies (Console Printer, Email Sender) and explaining how DIP helps decouple components. 28:50 - Debugging the Code Stepping through the code and explaining how the SOLID principles are applied in practice, focusing on single responsibility, open/closed principles, and Liskov substitution. 30:17 - Applying Discounts and Price Calculation Explaining how the system calculates product prices based on the applied discounts and how the flexibility of substituting discounts works. 31:05 - Liskov Substitution Principle in Action Showing the ability to switch between different discount strategies without modifying the original product service. 32:03 - Interface Segregation and Dependency Injection How the interfaces are separated and injected into the Notification Service to print messages and send emails. 33:08 - Final Output and Recap Recap of the working system with discounted products and how the notification system uses different methods for output while maintaining flexibility. 33:39 - Conclusion and Outro Thanking the viewers, inviting comments, and encouraging them to like and subscribe for more content. Please like and subscribe for more content 👍 We’d love to hear your thoughts—please leave your feedback in the comments below! 👍 Turn on notifications for the next videos in this series!