Amazing! Finally someone told Dependency Inversion in the simplest possible example. You covered both problem statement and solution, just under 4 minutes! Just perfect! "Don't code for classes, instead code for interfaces"
Hi Mounika, sso & 2Factor Authentication are used to secure the web applications. If your web application is created in Java then implement them in Java. If your web application is created in C#/ .NET then implement them in C#/ .NET. Basically depends on web application tech stack
I don't think the explanation is 100% correct. I don't understand how the service knows which implementation of the interface to use. I think this is the missing part of the explanation: public interface ILogger { void Log(string message); } public class FileLogger : ILogger { public void Log(string message) { // Logic to log message to a file } } public class DatabaseLogger : ILogger { public void Log(string message) { // Logic to log message to a database } } public class SomeService { private readonly ILogger _logger; public SomeService(ILogger logger) { _logger = logger; } public void DoSomething() { _logger.Log("Doing something important"); } } // In your application's startup configuration services.AddSingleton(); // DI container is configured to use FileLogger whenever ILogger is injected
Amazing! Finally someone told Dependency Inversion in the simplest possible example. You covered both problem statement and solution, just under 4 minutes! Just perfect! "Don't code for classes, instead code for interfaces"
preparing for my interview based on your videos I improved much on my skills with the help of your videos only thank you very much.
you made all SOLID principles so simple to understand. Thanks for your efforts. 🙏
Hello Sir, thank you so much for this. It's hard to find a well explained and demonstrated tutorial on SOLID principles and you did a fantastic job!
Thanks @ Kavita . Glad you liked it.
This is THE BEST explanation of the D principle. Thanks a lot!
Prepping for my 2nd .NET role, brushing up on SOLID, this helps, thanks!
Thanks Shubham and all the best for your interviews.
Hello Sir, Great Explanation for SOLID Principle, Need at least 2 design pattern videos with example(Singleton, And Factory) Please
Thanks for your videos. You made SOLID principles so easy
I'm so glad there is a "CC" option. Very well explained tho!
This is amazing explanation..now i understnad what this is and why its important
Can you please post videos on design patterns
Very clear explanation and nice example. Good content, thanks and keep it up
Thanks, will do!
After couple of videos found this super explained. Thanks bro
Welcome 👍
Hai Sir, i have a question ... i.e
What is sso & 2Factor Authentication... Is these are related to c# or else what???
Can you please Answer it sir...
Hi Mounika, sso & 2Factor Authentication are used to secure the web applications. If your web application is created in Java then implement them in Java. If your web application is created in C#/ .NET then implement them in C#/ .NET. Basically depends on web application tech stack
@@interviewhappy Thank you Sir
Dependency inversion principle and dependency inversion control both are same or not
Perfect explanation ever seen. Thank you sir👍🏻
Very nice and simple explanation
Thanks buddy and all the best for your career.
thanks for this sir..but can you please throw some light on differnce between high level class and low level class.?
It's not a very common way of describing classes... but they are almost like base class and derived class.
Really simple language to understand thanks
You are welcome
I don't think the explanation is 100% correct. I don't understand how the service knows which implementation of the interface to use. I think this is the missing part of the explanation:
public interface ILogger
{
void Log(string message);
}
public class FileLogger : ILogger
{
public void Log(string message)
{
// Logic to log message to a file
}
}
public class DatabaseLogger : ILogger
{
public void Log(string message)
{
// Logic to log message to a database
}
}
public class SomeService
{
private readonly ILogger _logger;
public SomeService(ILogger logger)
{
_logger = logger;
}
public void DoSomething()
{
_logger.Log("Doing something important");
}
}
// In your application's startup configuration
services.AddSingleton(); // DI container is configured to use FileLogger whenever ILogger is injected
Great series! Short and Sweet.
Thanks @Jow
can you answer this question "What’s the difference between the Arr? y.CopyTo() and Array.Clone()?"
can object of interface be created...., is it allowed>?
Can you please explain public static void main(string[] args)?
Finally an Indian talking slowly
Easy understand
well explained man 💥
Glad you liked it
Nice explanation
Thanks and welcome@akhileshwarv8525
@interviewhappy Very informative...simply explained it.
Thank you Sir ...
👌
Thanks
Ye totally bakwas laga mujhe