Over the last few articles I’ve been looking at the benefits of using class autoloaders and namespaces in PHP. Despite the clear benefits of using these features, WordPress developers tend to shy away from them. One of the big reasons for this is because of WordPress’ continued support of PHP 5.2, which reached its end of life years ago. Class autoloaders have been available in various forms since before PHP 5.3. However, the more up-to-date class autoloader — as is generally used in PHP development — require namespaces, a feature added in PHP 5.3. In this article, I will show […]
Why And How To Use Class Autoloading and Namespacing To Improve WordPress Development
Chris Aprea recently wrote a great post on why WordPress’ (continued) support of unsupported versions of PHP, especially PHP 5.2, is preventing WordPress developers from taking full advantage of the way the language has evolved over the last 8 years or so. Two of the best features in PHP, which WordPress developers have generally shied away from since they were not fully supported by PHP 5.2, are SPL autoloaders and namespacing. These two complementary features make it easier to use small, more manageable, and more easily reusable classes. Technically, PHP has had autoloading since 5.0, but the addition of namespacing […]
Upcoming WordPress Workshops in San Francisco
Are you a new WordPress user? Are you interested in learning the coding language behind WordPress? Do you want to build your own WordPress blog, or improve your WordPress site? If you answered yes to any of these questions then you should check out the WordPress workshops scheduled for the weekend of March 29 and 30, in San Francisco. The event is hosted by WordPress Open Studio, and is open to the public! There will be 2 workshops held—the first on March 29 and the second on March 30—for beginner and intermediate WordPress users, respectively. WordPress 101 Hands-on Workshop (Beginner) Saturday, March 29 […]
3 Comments