Coding Shorts: Dependency Injection Explained

Coding Shorts: Dependency Injection Explained

Like most of you, I've been using Dependency Injection in my projects for quite a while. Whether it be the built-in .NET Core Dependency Injection layer, Ninject, StructureMap, Unity, MEF, etc. I've been using a DI layer to do this work for many years. But before I understood the benefit, I did so somewhat reluctantly.

Like most of you, I've been using Dependency Injection in my projects for quite a while. Whether it be the built-in .NET Core Dependency Injection layer, Ninject, StructureMap, Unity, MEF, etc. I've been using a DI layer to do this work for many years. But before I understood the benefit, I did so somewhat reluctantly.

For me, it seemed like a lot of boilerplate for little benefit. But once I started using it, it clicked why it was so important. In this new Coding Shorts video, I show you why Dependency Injection is so important and why you'll want to use it once you understand how it works:

If you like the video, don't forget to subscribe to be notified of new videos!

.net c# coding

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

jQuery Ajax CRUD in ASP.NET Core MVC with Modal Popup

In this article, we’ll discuss how to use jQuery Ajax for ASP.NET Core MVC CRUD Operations using Bootstrap Modal. With jQuery Ajax, we can make HTTP request to controller action methods without reloading the entire page, like a single page application.

How to Compile C/C++ Code in VS Code (Windows)

in this article, I’ll show you How you can compile your C/C++ code in windows. To compile C/C++ code we need GCC/G++ to compile the code but windows don’t have like Linux terminal or mac terminal. So what we can do, to compile your code in vs code we need an extension called C/C++ Compile Run extension.

.NET Interactive with SQL!| .NET Notebooks in Visual Studio Code

In our last post, we announced that you can create .NET Notebooks in Visual Studio Code. Today we are announcing that .NET Interactive now ships with T-SQL support in addition to C#, F#, PowerShell, JavaScript, and HTML.

.NET Conf 2020 Demos & Sessions for .NET 5 + Virtual Events!

This year’s .NET Conf was the largest one yet, with over 80 live sessions across three days that were co-organized and presented by the .NET community and Microsoft.

Automatically find latent bugs in your code with .NET 5

Introducing AnalysisLevel in the C# compiler to introduce warnings to patterns like common codingmistakes or common API misuse. It’s an exciting time to be writing code! Especially for .NET developers as the platform keeps getting smarter. We now include rich diagnostics and code suggestions in the .NET SDK by default.