“Clever code” is a term that you may have heard before, accompanied by sighs and groans from other developers. Often, people seem to think of clever code as annoying, and perhaps even harmful. In this article, I’m going to give a brief overview of what clever code is, why it’s often...Continue Reading Is Clever Code OK?
Pacific Northwest PHP is coming up very soon and kicking off the beginning of fall September 10th-12th in Seattle! A bunch of PHP nerds will be getting together to share their knowledge and meet other awesome folks in the tech community, and yes, some of our folks will be there...Continue Reading Oh hi, Pacific Northwest PHP! We see you.
If there is one thing I really love to do, it’s migrations. While the requirements for a migration vary from project to project, the purpose is generally the same: Get data from point A to point B in a reasonable amount of time, and automate it as much as possible....Continue Reading Lesson Learned: PHP Memory Limits
Writing “clean” code is something we talk about a lot in software development. Developing for the web is no different in the pursuit of code that is “clean” than any other type of programming. It’s also something that you could write a book about (and people have). Without getting into a ridiculous...Continue Reading The Fundamentals of Writing Clean Code
CMB2 creates metaboxes and forms with custom fields that will blow your mind. Attached Posts in an extension of this extremely useful plugin. Every once in a while you may find yourself needing to attach various pieces of content to various other pieces of content within your site. Maybe you want...Continue Reading Attaching Posts with CMB2 for WordPress
There I was. Working on adding PHP docblocks to widgets.php in /wp-includes, like you do, when I came across this: So I set about trying to figure out the appropriate @since parameter to use. Do I base the @since on when the WP_Widget function was first added (2.8)? Or from...Continue Reading Removing PHP4 Compatibility in WordPress Custom Widgets