Перейти к содержимому

Learn C# with CSharpFritz - Ep9: SOLID Principles and Dependency Injection

dotnet

0:00 / 0:00

Learn C# with CSharpFritz - Ep9: SOLID Principles and Dependency Injection

14 964 просмотра · 6 л. назад
dotnet
357 тыс. подписчиков
14 964 просмотра · 6 л. назад
We've covered the basics of the C# language, but have not yet gotten any practical advice on object design and interaction. In this episode, Fritz talks about the SOLID design principles and applying them to C# classes and interfaces. We conclude with a quick discussion of Dependency Injection and the ASP.NET Core dependency injection container. Interactive Notebook with samples you can run IN BROWSER at: https://aka.ms/csharpfritz_notebooks_... After the C# basics sessions are completed, which user interface framework do you want Fritz to walk through FIRST? Vote for your favorite with an emote at: https://github.com/csharpfritz/csharp... Questions: 0:23:25 - The nice thing about SOLID, the principles are applicable to any technology 0:53:14 - Composition is better than Inheritance 0:57:07 - At what point does DI become overengineered? 1:15:52 - How is the object lifetime affected if we use Dependency Injection? 1:35:51 - What about using "using statements" vs Dependency Injection? Background Music is Harris Heller's Streambeats - Synthwave playlist, available royalty free at https://open.spotify.com/playlist/2gj... Source code and interactive content from the stream are available at: https://github.com/csharpfritz/csharp... Watch live Mondays at 1300 UTC / 9a ET / 6a PT at:   / visualstudio