2016
-
Introducing Sessionz
Nov 27
Introducing a new, middleware-inspired session handler for PHP projects (not just WordPress) called Sessionz. It’s open source; take a look!
-
Deprecate Magic Constructors in PHP
Apr 1
Along the lines of the argument to make code easier to understand for quick readers, I want to propose something a little less radical and just as useful for devs: Deprecate the magic `__construct()` function.
2014
-
A Tale of Two Package Managers: Composer and NPM
Oct 16
How Composer and NPM do things wrige and, at the same time, very very wrong.
-
Modular Code
Sept 27
Composer is a potential solution for theme/plugin dependencies in WordPress. But it will take some time before we flesh out the solution fully.
-
Clean up your clutter
Sept 25
Global variables are bad, clutter your code, and can be a major stumbling project in terms of project maintainability. Don’t use them.
-
Scripting vs Programming: PHP and OOP
Sept 2
OOP doesn’t make much sense when we’re talking about a scripting language.
-
Variable Coalescing
Jul 18
I wanted to take a moment to un-obfuscate a technique of mine for others so I can continue to use it in my code.
-
Multi-Instance Factories in PHP
Jun 26
I advocate the proper use of Singletons, but that situations where Singletons are appropriate are few and far between.
-
PHP: Read Only Attributes
Jun 13
Like in JavaScript, sometimes you want an object property in PHP to be read-only. This is pretty easy to set up!
-
PHP Output Parameters
May 28
One of the things I miss most from my C# coding days is output parameters.
-
Filtering Arrays in PHP
May 23
Few PHP developers know how to manipulate arrays using PHP’s built-in functionality. Here are three powerful applications of this function set and why you should use them in your code.
-
PHP, Security, and Lambdas
Apr 28
If you’re writing PHP code and you want to use lambda functions, don’t use PHP’s create_function() method. It’s insecure, and will be flagged as such by security software and analysts.