Extending Magento 2 classes by composition
With a Magento 2 DI preference, you can rewrite one class to another: However, once you have your new preferred class in place, you'll still want to build on top of the original class to re-use all of its (
protected) methods. It is easy to do this by extending the original class. However, composition offers a much neater way.
Written by Jisse Reitsma on 18 May 2019
Local composer development with Magento 2
You have heard the advice already: Use composer. However, I frequently hear that Magento 2 modules are still developed in
app/code because of reasons. This is wrong. I'll show you why.
Written by Jisse Reitsma on 10 May 2019
Faster Magento 2 Integration Tests
Testing is important. While unit testing and MFTF should play a vital role in Magento 2, let's not forget about integration tests. When you first run the Magento 2 Integration Tests suite of the Magento core, you will be waiting a long time for things to complete. And slow test runs will keep you from making use of them. So let's see how we can optimize Integration Tests to run as fast as possible.
Written by Jisse Reitsma on 4 May 2019
Presenting Yireo ServerPush, err ... LinkPreload
Written by Jisse Reitsma on 27 Apr 2019
Smaller Magento 2 images with WebP
Since already some years, WebP is an alternative image format, developed by Google, to offer the same quality but in much smaller sizes: In short, WebP allows serving much smaller Magento 2 images to WebP-capable browsers. Our Magento 2 extension is now freely available on GitHub. Let's see what is inside.
Written by Jisse Reitsma on 20 Apr 2019