Primer On Globals, PHP, Classes. or OOP.
This is a post about PHP classes written for class/OOP (Object-Oriented Programming) n00bs. If that’s you, feel free to stick around. This post also is based on the assumption that you’ve become...
View ArticleGary Jones’ Recommended Resources on Avoiding Singletons
The Clean Code Talks – “Global State and Singletons” Why Singletons have no use in PHP Testing Code That Uses Singletons Making Singletons Safe in PHP The “Missing” Patterns of the PHP Manual —...
View ArticleGiuseppe Mazzapica on: “What is the best way to initiate a class in a WP...
Giuseppe Mazzapica wrote a very thought-provoking and insightful response to the question “What is the best way to initiate a class in a WP plugin?” on wordpress.stackexchange.com. I definitely...
View ArticleUsing Class Autoloaders (in WordPress?!)
The other day, I tweeted out that I believe there is hesitancy in the WordPress world to use autoloaders. Don’t believe me? I feel like there’s hesitancy in the WP world w/ autoloaders....
View Article