Dependency Injection

Ғылым және технология

This week, we're going to talk about the topic of Dependency Injection in Object oriented code (specifically PHP). You don't need a fancy container to do it, it's actually quite simple to do manually!
Blog: blog.ircmaxell.com
Twitter: / ircmaxell

Пікірлер: 495

  • @persiansayed
    @persiansayed2 жыл бұрын

    8 years ago you uploaded this 5 minutes video that has helped me understand this concept that I didn't understand by watching videos and reading articles uploaded and written in 2021 respectively. Thank you mate.

  • @OneLordeAnimeClips

    @OneLordeAnimeClips

    Жыл бұрын

    9 years now bruva

  • @mayankmudgal1728

    @mayankmudgal1728

    10 ай бұрын

    Damn true! Thanks Anthony

  • @typosbro_

    @typosbro_

    7 ай бұрын

    it's 2023 and your comment aged like a fine wine

  • @kartikupadhyay5045

    @kartikupadhyay5045

    7 ай бұрын

    @@typosbro_ agreed!

  • @ayushpatel4710

    @ayushpatel4710

    6 күн бұрын

    Now its 2024 ... I still didn't get this... Now i will go through your article 🤖🤖

  • @andrewzmeyer
    @andrewzmeyer8 жыл бұрын

    Very good job. 5 minutes to explain what other tutorials take over an hour.

  • @robertanic7799

    @robertanic7799

    7 жыл бұрын

    great explanation, simple and easy.

  • @FahadShah822

    @FahadShah822

    6 жыл бұрын

    And what schools would take weeks to explain

  • @krzysztofstankiewicz1158

    @krzysztofstankiewicz1158

    5 жыл бұрын

    It IS good... but not quite sufficient. It leaves one with the impression that DI is like a singleton with lazy init'ing getters.

  • @jsonkody

    @jsonkody

    5 жыл бұрын

    No .. you just projecting it there ...

  • @PrizrenaliZH

    @PrizrenaliZH

    3 жыл бұрын

    Unfortunately his explanation is full of mistakes. He explains what he thinks DI is about and not what it actually is defined to be. Thumbs down. I think, he knows better, but really explains an abstruction of what DI is for the "dummy" youtube user. If this was the case, he probably did a good job.

  • @mrsoneji
    @mrsoneji8 жыл бұрын

    We need more language agnostic tutorials like this!

  • @gustavopguto

    @gustavopguto

    4 жыл бұрын

    @Zeeshan Haider Javascript and node and this still makes total sense.

  • @thinkfoodthoughts

    @thinkfoodthoughts

    3 жыл бұрын

    @@gustavopguto Java & Kotlin and it still makes sense 👌

  • @kamikaze9785

    @kamikaze9785

    3 жыл бұрын

    @@thinkfoodthoughts and i am dumb i watched like 5 videos still don't understand anything.. maybe because i am node developer and used to functional programming

  • @TheIronWaffleMan
    @TheIronWaffleMan7 жыл бұрын

    This is absolutely fantastic. Brilliantly explained. Went from being iffy on the concept to totally getting it (at least as far as the video explains). Great job.

  • @nvjrane
    @nvjrane4 жыл бұрын

    These 5 minutes have been the most productive minutes of my life. I have seen so many videos and have read about dependency injection, but no one has explained it so well. Thank you Anthony Ferrera. Keep up your good work.

  • @Games.Ar1
    @Games.Ar17 жыл бұрын

    I believe this is the BEST tutorial explaining this abstract concept in KZread. Thank you!!

  • @josephfernando4867
    @josephfernando48677 жыл бұрын

    Now thats what I call a real tutorial...clear concise and hit the nail on the head....looking forward to many such tutorials from you Sir.

  • @JSicking
    @JSicking5 жыл бұрын

    Holy crap this is one of the simplest most straightforward explanations for something I've spent a real long time trying to totally wrap my head around. Awesome job and thanks!

  • @tcindie
    @tcindie5 жыл бұрын

    This may be the most clear and concise coverage of this topic I've ever encountered. You've earned my subscription :)

  • @programster_uk
    @programster_uk9 жыл бұрын

    Others have already said it but this is definitely the best explanation on KZread. Your video on mediators was great too. I really hope you make more of these videos about design patterns and programming concepts.

  • @desmondpacassidy
    @desmondpacassidy10 жыл бұрын

    5 minutes of clear explanation ...there is a plethora of explanations of DI out there that cloud over (obfuscate) the very simple and central themes of DI...this video is straight to the point...Thanks Anthony...

  • @tornenic
    @tornenic7 жыл бұрын

    very well done. I like how he basically explained dependency inversion in the same tutorial. was struggling with both concepts. now both are crystal clear.

  • @guerinorodella
    @guerinorodella9 жыл бұрын

    Awesome! I read, watched, searched for a lot of stuff to understand what's Dependy Injection and how and why to use it. In this f** simple video, you explained everything! Thank you!

  • @danmo7072
    @danmo70726 ай бұрын

    you know it's a timeless video when 10 years later I'm still watching it.

  • @oh2txb18
    @oh2txb18 Жыл бұрын

    Out of the dozen videos I've watched and multiple books I've read through, this was hands down the best explanation of DI I've come across. Even while framework/language agnostic no less. Thank you.

  • @danielcommins1285
    @danielcommins12852 жыл бұрын

    I watched several videos explaining this and this was the most direct, clear, and shortest video. Well done 👍

  • @kylebussert6032
    @kylebussert60326 жыл бұрын

    Thank you for taking the time to put this together and sharing. Its amazing what you can get out of 5 (well done) minutes. Very helpful!

  • @darknawg63
    @darknawg639 жыл бұрын

    OMG! I finally get it. This is the clearest explaination that I've ever heard on DI. Proof that the teacher makes all of the difference. Thanks you Anthony. +1

  • @romanlevytskyi6879
    @romanlevytskyi68799 жыл бұрын

    this is just the best DI explanation i've ever seen !

  • @SC1240
    @SC12403 жыл бұрын

    I come back to this video so much, it's literally the best explanation of dependency injection.

  • @morrgash
    @morrgash3 жыл бұрын

    This is the BEST explination i have ever seen since i started learning programing, such a great way to explain the logic which most of us struggle with :)

  • @Rackerintraining
    @Rackerintraining5 жыл бұрын

    Perfectly clear and simple for all languages that use DI. This isn't even for Java and 100 times better than Java DI videos ... Bravo!

  • @omkarpatil2094
    @omkarpatil2094 Жыл бұрын

    THANK YOU, for this! I've seen like 5 videos before this, but yours was the shortest, cleanest and I can finally say I understand the principle after watching it!

  • @sankalparora9374
    @sankalparora93744 ай бұрын

    Man! This is the best explanation I have ever heard on dependency injection. Amazing.

  • @johanjurie
    @johanjurie3 жыл бұрын

    This is the best explanation for DI I have come across.

  • @BanibrataDutta
    @BanibrataDutta4 жыл бұрын

    Still shines like gold, 6 years later. Amazingly simple, to-the-point, succinct explanation.

  • @Azyro777
    @Azyro7773 жыл бұрын

    looking for a simple explanation about the topic, and found this 7 years old video is actually the best one that I've found.. thank you.

  • @GuardianTam
    @GuardianTam7 жыл бұрын

    I've been struggling to understand DI for while. This was so clear and understandable. Thank you good sir!

  • @tijsp.8162
    @tijsp.816211 ай бұрын

    These last couple of days I've been looking into dependency injection quite a bit: how to do it, why to do it etc. etc, and while I understood what was being said, I didn't have a clue how it all fit together. You explained the workflow clearly and concisely, and it made all the pieces fall into place! Thank you very much ^^

  • @bronbanchyk567
    @bronbanchyk56711 ай бұрын

    10 years ago, but your guide is: - short - easy to understand I am very grateful to you for that!

  • @Kralnor
    @Kralnor3 ай бұрын

    Thank you! This was the best explanation of Dependency Injection that I've seen so far.

  • @tonydew
    @tonydew11 жыл бұрын

    I love your screencasts! You do such a good job of explaining new/complex concepts. Please keep doing them!

  • @kmk69
    @kmk69 Жыл бұрын

    Thanks, it took me just 5 min to fully understand DI with your explaination, very clear.

  • @FumeCreates
    @FumeCreates2 жыл бұрын

    Thank you for taking out time to make this video all those years ago. Much appreciated toay.

  • @josuevalencia3712
    @josuevalencia37126 жыл бұрын

    I saw the video in the library, without headphones, just with the subtitles... even then was perfectly explained, thanks a lot!

  • @talhamasood6165
    @talhamasood61654 жыл бұрын

    Brilliantly explained! Its all because your concepts are so clear ....

  • @PiotrSwietoslawski
    @PiotrSwietoslawski10 жыл бұрын

    Anthony, this is brilliant. Very succinct and at the same time clear and easy to visualize and follow thanks to you writing and drawings.

  • @tomhollins9266
    @tomhollins92665 жыл бұрын

    best explanation I have ever heard. Clear and concise.

  • @elielberra2867
    @elielberra2867Ай бұрын

    Wow I am amazed by this video, such an elegant explanation! The best tutorial on dependency injection by far

  • @brandonbahret5632
    @brandonbahret56324 жыл бұрын

    I appreciate the unique format used in presenting information in this video.

  • @MISA-qy4hx
    @MISA-qy4hx Жыл бұрын

    After exactly 10 years, thank you!

  • @joshungdt
    @joshungdt Жыл бұрын

    wow.... I would say old but gold for this video. straight to the point, very clear and it's just 5 min. Thank you

  • @waseemsumer6982
    @waseemsumer698211 ай бұрын

    The way you explained it by the example is marvelous. Only by this video I understood dependency injection.

  • @raupie
    @raupie5 жыл бұрын

    Best explanation of Dependency Injection I've ever seen.

  • @nac9880
    @nac98804 жыл бұрын

    This is the best tutorial I've ever found about this topic. To put in practice I recommend laracast's The PHP Practitioner free course. PS.: Just figured out that ircmaxell is your blog, man. I already read some posts that are really great, thanks for sharing your knowledge. You are a really good teacher.

  • @robmacinnis
    @robmacinnis11 жыл бұрын

    Very well done. Great explanation and clear delivery. Can't wait to see more.

  • @obo6261
    @obo62613 жыл бұрын

    Jesus Christ other tutorials take so long to get to the concept, but this one was short and sweet! Thank you very much

  • @nagautube1
    @nagautube16 жыл бұрын

    Thanks, by far the best explanation about DI and its usage. Thanks!!

  • @triagodias
    @triagodias11 жыл бұрын

    Your videos are so great to understand complex things. Please keep going. Thanks for your work.

  • @mmzz342
    @mmzz3423 жыл бұрын

    this is the best tutorial about dependency injection! Extremely easy to understand!

  • @nadavj
    @nadavj11 жыл бұрын

    Anthony, loved your video. It's clear, quick and to the point.10X!

  • @MrAntiKnowledge
    @MrAntiKnowledge2 жыл бұрын

    That's the best explanation for Dependency Injection I've heard so far. I can implement it and know why I should do so, but "Dependancy Injection" remained a foreign word to me, until I saw this video and it clicked.

  • @technoshrink
    @technoshrink9 жыл бұрын

    Thanks man. People like you make the world go round.

  • @Ra_heem
    @Ra_heem5 жыл бұрын

    Wow, i'm only beginning to learn how to code and this video just broke what was an unreachable concept for my mind into something that was so understandable. Thank you sir!

  • @alejandraporras8075
    @alejandraporras80754 жыл бұрын

    Simple and concise... Thanks very much for your time explaining this!

  • @mohamedmohsen8746
    @mohamedmohsen87465 жыл бұрын

    You made me believe of the power of briefly 💪 please keep doing all the up coming videos just like that. Awesome 👏

  • @CanalDoFilipe_
    @CanalDoFilipe_3 жыл бұрын

    I'll have an interview soon and this is the best video I could find about DI.

  • @scdecade
    @scdecade7 жыл бұрын

    Upon further reflection, this is the best and most succinct explanation of DI.

  • @chinthakasenaratne731
    @chinthakasenaratne7319 жыл бұрын

    wow..i have watched many videos before related to CI. this is the best out of best.great stuff Anthony..You are truly a master of explaining complex stuff in a simpler manner. Keep it up.Well done and thank you very much. :)

  • @MarceloSantosDev
    @MarceloSantosDev2 жыл бұрын

    8 years later... and this video is as relevant today as it was when it was uploaded!

  • @ashishdedaniya
    @ashishdedaniya5 жыл бұрын

    Really awsome , it takes 5 min to understand what other tutorial take hours, very good job, and thank you

  • @kmj2000
    @kmj20002 жыл бұрын

    THANK YOU for finally explaining this in a simple matter. Once again your videos have helped me.

  • @raghuZanne
    @raghuZanne8 жыл бұрын

    Amazing! Love your explanation, with pictures!!

  • @jameelshehadeh9011
    @jameelshehadeh90112 жыл бұрын

    seriously this is gold explanation ! salute

  • @DusanAcimovic
    @DusanAcimovic6 жыл бұрын

    People like you make this world awesome. thanks for the explanation

  • @bayram4ik
    @bayram4ik10 жыл бұрын

    This is the best explanation of DI I've ever seen! Thanks Antony Ferrara!

  • @MrCamposJorge

    @MrCamposJorge

    9 жыл бұрын

    thought exactly the same!

  • @bartholomewtott3812

    @bartholomewtott3812

    5 жыл бұрын

    Sadly its wrong

  • @kamikaze9785

    @kamikaze9785

    3 жыл бұрын

    @@bartholomewtott3812 why

  • @user-my1dr5tb7i
    @user-my1dr5tb7i3 жыл бұрын

    It's really helpful for me even now. You are a great teacher!

  • @joseluist.r.8915
    @joseluist.r.89156 жыл бұрын

    Clearest explanation in youtube!

  • @TashingaPemhiwa
    @TashingaPemhiwa10 ай бұрын

    Thank you for this video. I like your presentation style. Great way to explain concepts, and makes it more concrete in terms of understanding how it is applied in code.

  • @suchismitagoswami5609
    @suchismitagoswami56092 жыл бұрын

    Brilliantly explained! Really love your teaching style

  • @cordoval
    @cordoval10 жыл бұрын

    don't leave us Anthony, you are a great asset for the php community, great videos

  • @PiyushDangreIndia
    @PiyushDangreIndia8 жыл бұрын

    That was a very clean explanation of a rather seemingly complex concept. Thanks for putting this up :)

  • @lavishrich
    @lavishrich8 жыл бұрын

    Wow best explanation so far!

  • @FokwaDivine
    @FokwaDivine Жыл бұрын

    I subscribed because of this video. Straight to the point

  • @area5productions
    @area5productions10 жыл бұрын

    Your video was very helpful. It explained DI in a straight-forward, interesting way.

  • @hkpcnair
    @hkpcnair11 жыл бұрын

    I don't know how to thank you for this fantastic tutorial. So easy to understand so interesting....

  • @prestoX
    @prestoX2 жыл бұрын

    Awesome work 🙂 Clear and concise.

  • @CarlosChau
    @CarlosChau10 жыл бұрын

    Very well explained! The "wall-building robot" example was excellent in explaining decoupling!

  • @PrizrenaliZH

    @PrizrenaliZH

    3 жыл бұрын

    The paradigm of decoupling was not explained by the robot door example nor by other video parts. You could use inheritance or just initiate a new object from the supplier to achieve the goal. A viewer still cannot explain why to use DI to really have it decoupled nor what decoupling really means. I know it :) do you?

  • @christoph6055

    @christoph6055

    3 жыл бұрын

    @@PrizrenaliZH Yeah after 7 years I'm sure he does.

  • @PrizrenaliZH

    @PrizrenaliZH

    3 жыл бұрын

    @@christoph6055 maybe he gave up

  • @ericstoutenburg2710
    @ericstoutenburg27103 жыл бұрын

    Great video, very clear and concise explanation.

  • @seifeddineslimene5320
    @seifeddineslimene53202 жыл бұрын

    Great great great! We need more of these abstractions!

  • @Triviorito
    @Triviorito6 жыл бұрын

    Thanks It's clear you have a very deep understanding of the subject in order to make such a concise video. Kudos!

  • @Stigsnake5
    @Stigsnake56 жыл бұрын

    Very illustrative, easy to follow and understand.

  • @yallen2010
    @yallen20104 жыл бұрын

    This was a great video, perfect for the visual learner like myself. The drawings helped alot.

  • @TheKurdong
    @TheKurdong3 жыл бұрын

    I've always read about this in various articles, but it always comes across as a bunch of words trying to explain something to me, but relies on further reading of other related principles which ultimately just makes it more confusing. Sure it's good for the SEO of your website but it just doesn't help someone who just needs a simple answer. Luckily, I found this video. Straight to the point with a really easy-to-understand analogy.

  • @gabrielbetancourt2698
    @gabrielbetancourt26985 жыл бұрын

    Wonderful!!!! The wall-building robot was genius!

  • @alimomeni4777
    @alimomeni47775 жыл бұрын

    Amazing! Great timbre, information and visualization.

  • @html8525
    @html8525 Жыл бұрын

    How is this guy not popular on the YT programming scene. If you're reading this... put out more videos dude, SO HELPFUL!

  • @znatcn
    @znatcn9 жыл бұрын

    Thank you! That's the best explanation I've ever got.

  • @talharafique8913
    @talharafique89134 жыл бұрын

    a great explanation of dependency injection i have viewed in my life.

  • @gunterstrauss9673
    @gunterstrauss967310 жыл бұрын

    A really excellent and simple explanation of DI. Wish I had this when I started using DI over 2 years ago, non the less always a good idea to revise knowledge.

  • @rishabharya7795
    @rishabharya77953 ай бұрын

    This was so simple short and well explained

  • @paulerapedreira
    @paulerapedreira6 жыл бұрын

    Great job, simple explanation, also liked very much the format you used for your video. Keep up the good work!

  • @fancycode
    @fancycode7 жыл бұрын

    Simple ,Clear , Useful Explation

  • @darshans1190
    @darshans11903 жыл бұрын

    Uploaded 7 years back but it was neat explanation. Thanks mate :)

  • @jcabelloc
    @jcabelloc6 жыл бұрын

    Brief and clear explanation. Thanks a lot!

  • @rayzitu
    @rayzitu7 жыл бұрын

    I will thank you for this great explanation but also for being the first programmer to have a readable handwriting.

  • @shyama5612
    @shyama56123 жыл бұрын

    Excellent explanation. loved it. Thank you.

  • @nerol6351
    @nerol635110 ай бұрын

    Thank you! So easy and so understandable material!

  • @SilencerXVIII
    @SilencerXVIII5 жыл бұрын

    THANK YOU! This is a perfect explanation. I might show it in my programming classes!

  • @onyashed

    @onyashed

    5 жыл бұрын

    Use Shall.

  • @kamyargilak
    @kamyargilak5 жыл бұрын

    Really helpful, Anthony describes DI simple and useful, Many thanks, It shows your deep understanding of the concept.

Келесі