r/learnprogramming • • Apr 05 '22

Name one programming/comp sci concept you never understood and if you understand it, try to explain it to them

Name a programming concept such as virtual functions, pointers, certain algorithms, etc that you always had a hard time understanding and why.

Someone else who reads yours and does understand it, try to explain it to them to help them learn

1.6k Upvotes

738 comments sorted by

View all comments

10

u/IceCattt Apr 05 '22

No matter how many times I see it explained, dependency injection still baffles me.

2

u/lionhart280 Apr 06 '22

Luckily I made a blog post for this topic because it comes up so often, enjoy!

https://blog.technically.fun/post/dependency-injection/dependency-injection-part-0/

PS, this blog post helped me nail a job interview. On the phone portion they asked me if I could explain DI and I was like "Wait, hold on, I have an entire blog post that does exactly that, can I just give you my blog address?"

They were like, "Oh! Wow! Aight, absolutely" haha