OpenLampTech issue #119
Modern WordPress plugin development | Things the DB doesn't do | Enums in CakePHP | MariaDB taken private? | WordPress Block Bindings | MySQL design mistakes.
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.
How to Start Your Next Modern WordPress Plugin
Tanner Record has one of the best WordPress developer newsletters around in my opinion. The newsletters are always filled with best practices and solid code examples. In this article, learn how to structure your WordPress plugin utilizing modern practices like Composer and OOP PHP. Find out more about Tanner Record in this OpenLampTech developer interview.
[Tanner Record]
Things DBs Don't Do - But Should
As much as we like (or loathe) the database, it doesn't handle every single use (or edge) case. Version control is top of mind for me. The database has little to no awareness of breaking changes with application code and that can bite you. There are more points covered here. Good, insightful read for developers of all levels.
[The Nile]
Three common MySQL database design mistakes
I strive to become a better database designer every chance I get. Querying data is one thing. However, (effective) database design is something else altogether. Slapping an INT
data type on an auto-generated column may work in some cases. Yet, in other instances, when you run out of space, then not so much. Learn about more seasoned mistakes in this article.
[Planetscale]
A Beginner’s Guide to SSH for WordPress Users
While SSH'ing into a server can be useful and convenient, this access should be limited to appropriate users or administrators with the right skills. Things can turn sour quickly if not. You should be familiar with and comfortable using the terminal as this entails a lot of the SSH workflow.
Struggling database company MariaDB could be taken private in $37M deal
It appears another company is interested in buying MariaDB. After a rocky road on the public market, things seem[ed] to have settled down for MariaDB (or so I thought). A new CEO and company downsizing efforts were also recently implemented. However, more is still going on with MariaDB as it continues to (hopefully) find its way.
Introducing Block Bindings, part 1: connecting custom fields
There is a division going on in WordPress (in my opinion). Blocks are the mainstay. Although it still takes (some) PHP to make the whole kit-n-kaboodle work, I feel like efforts and development are moving away from PHP to more JS/React/block-based approaches. Here is a recent article from the fantastic WordPress Developer Blog on some upcoming features for WordPress 6.5 using Block Bindings.
[WordPress Developer Blog]
I know I don't share much content from some of the PHP frameworks but I want to do better in that aspect of OpenLampTech.
The recent CakePHP 5.0.5 has support for PHP [8] enums.
See code examples and uses of enums in CakePHP in this article.
Never use `empty` function in PHP
Ouch???
I have to say that ‘never’ is a mighty long time…
There are some examples in this article where you might want to use something other than empty()
.
For the most part, I'm going to continue using empty()
.
Interesting commentary in the comments section for this post too.
[dev.to]
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).
[#Classifieds, #Affiliates, #Click Ads, #Shoutouts]
🤝 OpenLampTech earns a small commission (or payment/gain in some form) from many of these links. Your support helps keep the weekly 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.
The online DNS course for developers. Learn more at Nslookup.
AI-powered SQL generator and data analytics tool. Learn more at SQLAI.ai - AI, SQL & DATA.