Dependency Injection for Mere Humans

Ian Littman (26.Jan.2019 at 13:40, 1 hr )
Talk at PHPBenelux Conference 2019 (English - US)

Rating: 4 of 5

What’s the difference between service location and dependency injection? Why is this dependency injection thing such a big deal anyway, and how do you use that tool correctly? I’ll answer these questions and more, including real-world examples of refactoring an application toward the more explicit, testable, closer-to-SOLID applications.

Who are you?

Claim talk

Talk claims have been moved to the new Joind.in site.

Please login to the new site to claim your talk

Want to comment on this talk? Log in or create a new account or comment anonymously

Write a comment

 
Please note: you are not logged in and will be posting anonymously!
= eight minus seven

Comments

Rating: 5 of 5

26.Jan.2019 at 16:17 by Dave Stokes (53 comments) via Web2 LIVE

Very complete presentation. Great job

Rating: 3 of 5

28.Jan.2019 at 10:22 by Lachezar Lechev (17 comments) via Web2 LIVE

There is definitely need for explaining DI. I wished I was given most of the information earlier when I was learning DI and DIC. Some things got me worried though, injecting a DateTime in the constructor to get the current time to be used for an Entity? O.o There are better ways to do this and to be testable, this is not one of them. There were also some other points that were not that very well thought. I think clearing the presentation, giving better examples and maybe also get inspiration from Martin Fowler blog posts about DI/DIC and IoC can really benefit the talk and make it very good. Definitely work on it and make it better, it's a really valuable topic and knowledge.

PS: It's good to mention some of the packages that give you DIC, but only for comparing in a small part of the talk, the most of the talk IMO should be based on why you want to do it, what's the concept of it and some well though explanatory examples.

Rating: 4 of 5

28.Jan.2019 at 20:17 by Bert Van de Casteele (56 comments) via Web2 LIVE

Well deliver talk about a deep subject like Dependency Injection. Code examples were clear and added to the talk, but I have to indeed agree with my fellow 'feedbackers' here that the presentation could do without the explanation of the DI packages. Nevertheless, a good talk.

Rating: 4 of 5

28.Jan.2019 at 21:48 by Sietze van den Bergh (28 comments) via Web2 LIVE

Very nice talk (texas joke still funny the 2nd time :D) Where you lost me for a moment is when you showed us the code snippet inside a tweet part. The code is hard to read (mostly due to the lack of proper names). While the code inside 1 or 2 tweets is cool I think it isn't right for the purpose of the talk. If those examples were more easy to read I think I would've followed that part better.
Thanks a lot for the great talk.

© Joind.in 2019