tubeshowcase●1,361,587 videos♡ My collection 0
← Learn to Code

Learn to Code1:40:08

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

dotnet ↗

From the creator

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_2020 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_with_csharpfritz/issues/13 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/2gjWL0J5SQKceERGJ8Lb5e?si=hxqRoh0DSGei8eOu2vEsiA Source code and interactive content from the stream are available at: https://github.com/csharpfritz/csharp_with_csharpfritz Watch live Mondays at 1300 UTC / 9a ET / 6a PT at: https://twitch.tv/visualstudio

Published 2020-10-27 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code