“Imagine if — starting with version 6.0 maybe — the WordPress team chose to actually deprecate themes, and then added modules and components as first-class extensions instead? “
PHP’s Composer is the worst tool, but it is the best we’ve got
“Democracy is the worst form of government except for all those other forms that have been tried.” Winston Churchill, plagiarized Composer for PHP is much like democracy, except for there are no others. So I have always hated Composer, for many reasons. And my views on Composer are admittedly in stark contrast with many others …
Continue reading “PHP’s Composer is the worst tool, but it is the best we’ve got”
A better alternative to “return early” – PHP / WordPress edition
Yes, complex conditionals are worse. But there is a third, better way. And no, it does not involve GOTOs. Me This post is about a coding pattern I have never seen used by anyone else for writing guard clauses, especially when those guard clauses are complex. This pattern results in code that is significantly more …
Continue reading “A better alternative to “return early” – PHP / WordPress edition”
Practical Object-Oriented Programming for WordPress Developers: A Tutorial Series
Goals of this Tutorial Welcome to this ongoing series whose goal is to teach Object Oriented Programming to WordPress developers. This series will teach you in a unique manner compared to traditional tutorials on OOP and based on my several decades of instructional experience. Using this approach it I believe it will be easier for …
Continue reading “Practical Object-Oriented Programming for WordPress Developers: A Tutorial Series”
Practical OOP for WordPress Installment 1: Objects
This is the first of an ongoing series whose goal is to teach Object Oriented Programming to WordPress developers. Check out the table of contents for the list of other installments. This first installment starts off slow and easy to ensure we don’t loose anyone. But fear not, future installments will accelerate the pace and challenge all …
Continue reading “Practical OOP for WordPress Installment 1: Objects”