mglaman.dev – June, 2 2023
Hey there!
Here's your weekly newsletter from me, Matt Glaman!
My podcast interview with Chromatic came out: Drupal 7 End-of-Life Ep 08: Building a Bridge to Drupal 7 with Matt Glaman
Was this forwarded to you? You can subscribe here!
My latest blog post
Factories and dependency injection
Last week I wrote about dependency injection anti-patterns in Drupal. These anti-patterns occur when your service's constructor has logic that interacts with the injected dependent services beyond assigning them to properties. These anti-patterns include creating a new object from a factory or retrieving an object from a stack. However, Symfony's service container supports defining services built from factories. This can streamline your code and follow best practices when using dependency injection.
Interesting thought
Seth Godin said something very interesting in his interview with Tim Ferris that stuck with me. I'm a Millennial. My oldest son is technically Gen Z. My two other sons are "Generation Alpha" (TIL!) The culture I grew up and around is disappearing and we constantly hear about Gen Z completely flipping the cultural book.
And the reason that this is interesting, I think, is because boomers... have driven our culture since the day I was born.
And now boomers are dying. And so we are living in a culture where there’s an overhang of all these people with loud voices talking about the end of the world because it’s the end of their world, but it’s not the end of the world.
Seth kicks off the interview with this statement. I've linked to the interview below.
This week's live stream
I worked to contribute a new feature to phpstan-deprecation-rules so that we can support the @group legacy
tag used by Symfony PHPUnit Bridge.
Twitch
Twitch is the world's leading video platform and community for gamers.
Interesting links
- Seth Godin — The Pursuit of Meaning, The Life-Changing Power of Choosing Your Attitude, Overcoming Rejection, Life Lessons from Zig Ziglar, and Committing to Making Positive Change (#672)
- I love the interview style of Tim Ferris. I also love the insights of Seth Godin.
- DevEx: What Actually Drives Productivity
- I enjoyed this article's core dimensions for developer experience.
If you enjoyed this, consider forwarding it to a friend.
Have suggestions or ideas for future blog posts and newsletters? Let me know!