Peter Jaap Blaakmeer, Jisse Reitsma

Full transcription below show notes
Show notes
Extensions mentioned
https://github.com/davidrjonas/composer-lock-diff
https://github.com/magento/quality-patches/blob/master/patches.json
https://github.com/mage2tv/magento-cache-clean
https://github.com/kiwicommerce
https://github.com/olivertar/m2_api_product_images
https://github.com/experius/Magento-2-Module-Experius-MissingTranslations
https://github.com/netz98/headless-guillotine
https://github.com/markshust/magento2-module-disabletwofactorauth
https://github.com/magento/security-package
Meld diff tool - https://meldmerge.org/
Architecture repo - https://github.com/magento/architecture
Database MediaStorage in M2 - https://github.com/magento/architecture/issues/111
File system framework in m2 - https://github.com/magento/architecture/issues/219
Upcoming episodes:
#4 Willem Wigman & Hyva
#5 CI/CD
Full transcription
Jisse: Hi, everybody. Welcome to episode number three of The Registry with me, Jisse Reitsma and--
Peter Jaap: Hello, Peter Jaap here.
Jisse: Cool. So there we are. Yeah, episode three. We started off with episodes one and two, kind of like, a little bit awkward, a little bit eerie like, “Was this going to work? Did we only make it to produce a single episode? Or would this be a series?” But slowly, I think it’s becoming a series, right? So that's a cool thing.
Peter Jaap: I think it's officially a series where you have three.
Jisse: Okay. Not a miniseries, but maybe it's becoming also like one of those long-going series as well. Yeah.
Peter Jaap: Yeah.
Jisse: So the concept is simple. It's two Dutch guys talking about random things related to Magento 2, related to developer stuff, things that we find interesting. Yeah, and maybe the kickstart of everything is we're recording this actually, while Magento 2.4.1 has been out already for, I don't know, like one week, two weeks? Two weeks ago already. So Peter Jaap, did you upgrade already?
Peter Jaap: Well place your bets. What do you think?
Jisse: I think you didn't.
Peter Jaap: No, we didn't. We're helping everybody on to 2.3.6 at this point, which is a really easy upgrade from 2.3.5-p2 where most of them are coming from. I just did one today from 2.3.4, which also was a pretty small step. Wasn't that big, that much of a problem so I like. 2.3.6 was an easy upgrade so I don't know, should I go to 2.4.1? What are your thoughts?
Jisse: Well, if I have to admit, so I'm running a few production shops, and they're actually just doing fine. I see also, agencies that I'm helping out struggling with the same kind of issues that you have. So the real question is like, do you really need it or not? Well, you don't need it to get rid of MySQL search because well, you can do that already with the older version. So yeah, there's not that many improvements that you might be eager to adopt unless you're running a Hettle shop already, something based upon PWA Studio or-- And personally, what I find-- Yeah, go ahead.
Peter Jaap: Or I did upgrade one shop to 2.4.1 because we're starting Hyva implementation on it and that requires 2.4. So I did do one upgrade and it was a fairly simple shop and that went pretty easy. But yeah, that's because of Hyva, but we'll get into that next week. But yes, I lied. I did do one.
Jisse: Hoofa, hoof, hoof, hiff, hife, hifa…
Peter Jaap: Hoova, hoova, hivva, hyva
Jisse: I don’t know what it’s being pronounced as but yeah so actually, this episode--
Peter Jaap: Willem pronounces it as hoova.
Jisse: Exactly. Yeah. And this is episode three.
Peter Jaap: It’s Finnish or something.
Jisse: Yeah. Well, definitely next episode, he's joining us to explain everything, including the right pronunciation and including the real meaning.
Peter Jaap: Oh, good because I don't understand anything.
Jisse: Exactly.
Peter Jaap: I think that mainly has to do with it being front end stuff and I'm not very good on that.
Jisse: Now, for me for the upgrade to Magento 2.4. So I've been doing that upgrade for a couple of simple shops and there, I didn't really find any issues. One of the things that I'm kind of eager to play around with is the controller decomposition. We mentioned this in the previous episodes, and I can see really the differences in loading times that a controller based upon the old extending upon the abstract action or the admin actions that are there. And then suddenly replacing it with one of these, or just an implementation of an interface, a clean constructor that you basically have for your own dependencies, it's just reducing per controller loads about 50 to 60 milliseconds per Ajax goal or per load. That's pretty awesome. But yeah, it's not included in the core. So none of the core modules have been adopting to that new strategy yet because of, well, I don't know, backwards compatibility, and so on. But yeah, so let's not talk about the upgrade any further.
Peter Jaap: So just ripping out all the dependency injection in these controllers is giving you this speed increase.
Jisse: Yep, which makes you wonder, of course, like, “Hey, what on earth is all of that dependency stuff then doing?” Well, it's dealing with events, it's dealing with, maybe also really cool stuff, plugins that are doing all kinds of tricks in there. But if you want to reduce it down to your own controller deciding upon what needs to be done in a very clean and direct way, it's kind of cool.
Peter Jaap: So if you use the decomposited, decom, what’s the word?
Jisse: Decomposition
Peter Jaap: Decompositioned controller, you don't have any events triggering, or is that handled in a different way?
Jisse: So as far as I know, the events are simply skipped. Yeah.
Peter Jaap: Okay. Interesting. So that's a thing to watch out for.
Jisse: Yeah. But maybe that's also the strategy that I think should become more popular - less is more. So instead of just adding more functionality to Magento 2, sometimes it's actually good to reduce functionality, remove things that you have out of the box, just for the sake of performance.
Peter Jaap: So configuration over convention. Less magic, more explicitly, yeah.
Jisse: Yeah.
Peter Jaap: Okay
Jisse: Yeah, now let's skip the rest of the talk about the upgrades. I'm maybe going to ask you next time again, as well.
Peter Jaap: This will be a recurring item in the podcast, “Did PJ upgrade to 2.4?”
Jisse: Yeah, so episode 26, “PJ, have you up...