2014
-
WordPress and Shadow Taxonomies
Mar 15
Abstractions build false confidence for new developers – so I’m going to show you how to build a post-to-post relationship system in WordPress from scratch.
-
Why I Advocate “Anti-Patterns”
Mar 7
When I ask developers, “why’d you use a Singleton here,” more often than not they reference a tutorial, another developer, or “that’s how I’ve always done it.” No one ever takes the time to learn about the patterns (or anti-patterns) they’re using so they can make informed decisions about software design.
-
Singleton: Alternative to the Anti-Pattern
Mar 6
There are valid reasons for using a Singleton in your design – these reasons, however, are rare enough that many developers can avoid them entirely and still have a full career. If you find yourself using Singletons often, you’re doing something wrong.
-
Understanding Parallel Processing
Feb 17
When I explain to people that I enjoy writing code in C# more than PHP, they scratch their collective heads and, with a quizzical look, always respond, “why?” My biggest reason: I really enjoy working with parallel processing.
2013
-
Query, Template, Actions as MVC in WordPress
Dec 12
I love WordPress. I also love MVC design fundamentals. Unfortunately, these two loves of mine are at odds with one another, and that makes me sad. Here’s my simple idea to make WordPress’ built-in templating engine play nice with MVC sensibilities – everyone can win!
-
Making Singletons Safe in PHP
Jan 7
Singletons are not inherently evil; just overused and implemented poorly. Here’s a way Singletons can be perfectly safe to use in PHP.
2012
-
The Case for Singletons in WordPress
Dec 28
Several WordPress developers have been discussing the singleton pattern lately. Here’s why I think singletons are actually useful in WordPress.
-
WordPress Plugin Structure
Dec 27
The best plugin development pattern for WordPress is the singleton. Here are three different ways to build a plugin, including a singleton example.
-
Theme-ready Shortcodes in WordPress
Oct 5
Make your WordPress shortcodes flexible by using a shortcode template for markup. Here’s how to do it.
-
Doing it Wrong the Right Way
Jul 17
There is no “right” way to include a WordPress plugin within a theme. But if you must, here’s how to break the rules …
-
Classy Plugins
May 15
Someone asked why I structure my WordPress plugins the way I do. Here’s a full explanation …
-
Start with a Unit Test
May 8
Before you write new code, you should always write a unit test first. It makes development so much easier!