OpenLampTech issue #124
Doctrine ORM pitfalls | DTOs in PHP | SQLite bugs in a Laravel app | WooCommerce custom product types | WordPress utility plugins
Thank you for reading the OpenLampTech newsletter!
If someone awesome shared this newsletter with you and you are not yet subscribed, please use the Subscribe button below and join:
OpenLampTech has sponsorship opportunities for your brand, product, or service in the weekly newsletter. As an independent publication, collaboration is very affordable.
All commentary is mine unless otherwise quoted.
The WordPress Community Needs More Utility Plugins
WordPress utility plugins are the way to go. One file, one functionality - one plugin. Simple[r] setup and maintainability. Less bloat. Tanner Record has more about them in this article.
[Tanner Record]
Coming in WooCommerce 8.8: Making Product Onboarding and Product Tours Extensible
If I'm understanding this correctly, WooCommerce 8.8 will support custom product types. This is huge. These custom product types can be included in the onboarding list of products as well. Custom product types open up new possibilities for WooCommerce websites.
[Woo Developer Blog]
This is a very interesting account of a small SQL-related bug in a Laravel application. It appears to be more of an SQLite discrepancy than a Laravel issue. Just goes to show that SQL can bite you when it's returning incorrect or unexpected query results. And, there are no syntax errors with this type of bug, making debugging even more difficult.
[Medium]
Data Transfer Objects (DTOs) in PHP
This article is an excerpt from Ash Allen's book, Consuming APIs In Laravel. Ash provides insight and thoughts on why sometimes it's better to use classes in the form of ‘data transfer objects’ or DTOs, instead of PHP arrays. I highly encourage you to read this post whether you work with Laravel or not as there is much to learn.
[Ash Allen Design]
Avoiding Pitfalls with Doctrine ORM: The Impact of Type Hints
I think this one is quite interesting where there are some edge cases in which Doctrine ORM might ‘fail silently’. I have no working experience with Doctrine so I won't pretend I can do this one justice. Lots of intricate things going on behind the scenes here. I'm learning a lot from this one too and so will you.
[1823.pl]
Introducing A New Plugin to Facilitate Woo.com Product Updates
The Woo.Com Update Manager Plugin will be released with WooCommerce 8.8 in early April 2024 (tentatively April 9th). This new plugin is how Woo.com products and themes are updated. These updates will run in the background without the need for additional admin pages or interfaces. I'm honestly not sure if this is a good idea or not. Perhaps a testing rollout phase would be better and also, make it optional?
[Woo Developer Blog]
[#Affiliates] - Your support keeps the OpenLampTech newsletter free for readers
Take your Laravel applications to the next level with Battle Ready Laravel by Ash Allen. Learn how to improve the performance, maintainability, and security of your Laravel projects in this e-book.
Ultimate Laravel Boilerplate to help other indie hackers deliver their SaaS in hours. Get started with LaraFast today!
Thank you for reading. I hope you have a great rest of your week.
Take care.
Josh Otwell
OpenLampTech is a reader-supported publication. You can support the publication with a virtual coffee for as little as $3 (USD).