Loose Coupling & Dependency Injection the EASY Way!

preview_player
Показать описание
This is a pragmatic approach to loose coupling and dependency injection with a focus how at they core they’re SIMPLE concepts that improve YOUR life!

🤓 ME ELSEWHERE

🙏 CREDITS

Рекомендации по теме
Комментарии
Автор

Fantastic video, clearly explains the basics. I have added it to my "Awesome Dependency Injection in Python" page (alongside other resources and many frameworks and libraries in Python).

sfermigier
Автор

For anyone not familiar, Hynek has written some incredibly well designed libraries like structlog. I use several of his libraries every day.

stevie_mac
Автор

3:07 nice reference to fear and loathing in las vegas!

Agnostic
Автор

Congratulations on starting your own channel. Always love your unconventional style :-)

AndreasJung
Автор

Protocol is soo underrated, I recently rewrote a library first defining all Protocols and then could go on writing implementations, which was so much easier than the other way around

knolljo
Автор

You have your reasons for thinking you may need shorter videos, but I found this to be a great length. You delivered information with examples that I can use immediately. This was just 'in-depth' enough without getting lost in the weeds. You cleared up my misunderstanding about Service Location; It is not inherently bad, but WHERE you use it matters. I really enjoyed your PyCon Talk and related article 'Subclassing in Python Redux'. Looking forward to more useful content. Thanks Hynek!!

joelffarthing
Автор

The feeling of actually learning und understanding something greatly overshadow any mic hits or so, you are an awesome source of knowledge Hynek <3
I mean its probably basic and already out there but id love a video about using attrs from the creator itself :P
Or maybe about onion/clean architecture? NEEDS MORE CONTENT PLZ

Stubatigerful
Автор

"... even if you use global variables, like an animal" had me laughing. Who says Germans have no charisma? Oh, wait... Hynek did 😂 Anyway, you got me to subscribe

richtea
Автор

Great video, thanks!
The content is great, and even as an experienced programmer it's nice to see someone explain it all clearly. And the quality of the video itself, regardless of content, is really good too.
Looking forward to the next one!

tamirbahar
Автор

I really appreciate the distinction of the concepts vs tools, as so many folks have been introduced to a concept by using a tool. Since so much of software engineering is discovered through practical use, what other concepts might you explore to decouple from tools?

miketheman
Автор

"An example of Factory, Factory Factory you found under your bed as a kid..." That's a big problems with everything -- having good, concise examples that don't over-complicate everything even further.

flamy
Автор

The language of choice have pretty significant impact on the concepts you are able to adopt with it without inflicting pain on yourself and others. Adding some magic annotations that do things during runtime is a risky business, because you will never know if your thing works until you run it. Unit tests with mocked dependencies will obviously not prove that your thing is running fine when the real dependencies are assembled. Passing arguments to your functions is fine for 2-3 dependencies, but it will quickly become pain once your application grows.

Having DI framework that does compile time checks that it can build your DI tree is a real time saver and creates great confidence and ergonomics for you. Such libraries are quite few for statically typed languages and unfortunately non-existent for dynamically typed languages 😅 (since there are no compile time checks). So far the best example of such DI approach is built in Scala's ZIO library. I can recommend 👍

HelloForeignWorld
Автор

Keep posting videos! They are great so far!

hirolau
Автор

I would zoom you out a little. We usually have a little wider fov when looking at a person

MurtagBY
Автор

I love DI, but I've also seen it misused to the point that it made it impossible to follow the code without a debugger. Keep your dependencies as simple as possible, and remember that if your dependencies also have multiple dependencies injected, you will have a very bad time.

anzedb
Автор

I downvote every single video that promotes a VPN service, no matter how good the content is or how much do I like the youtuber. This is one of those rare ocations in which a youtuber talking about VPN services at the end of a video made me to like the video and subscribe to the channel.

cabc