I’m speaking at Nomad PHP: Banishing Loops with Functional Programming

I’ve written a couple posts here on WPShout about functional programming, the best of which is “Gentle Introduction to Functional PHP for WordPress Developers: Using Filter and Map on Arrays of Posts“. That post inspired me to give a conference talk, which got me invited to give a talk at the Nomad PHP online users-group. Nomad PHP has a small fee to see live talks, but it’s a nice little community and certainly for a talk that interests you well worth the largely-nominal event charge.


The Three Development Paradigms: Procedural, Object-Oriented, and Functional

When you’re brand new to development in PHP or JavaScript, you don’t really need or want to think too hard about programming paradigms. You just want to get things to work. And that makes a lot of sense. But eventually as you go along, you start to wonder. What’s this “OOP” thing people seem obsessed with? Am I doing that? Should I be?



Gentle Introduction to Functional PHP for WordPress Developers: Using Filter and Map on Arrays of Posts

Pen function |functional programming in WordPress

Fred’s post last week was about filtering through arrays of posts and ordering them. He foreached through arrays, and then used PHP’s usort() function to get a list of alphabetized posts with comments open. That got me thinking a little bit about a topic I very briefly touched on in my summary of the JavaScript ecosystem: functional programming.


When Coding, Make the Smallest Possible Change

After you develop for a while, and especially if you keep an ear out for wisdom that others offer, you get some habits. Those habits aren’t things you consciously think about, but they can make a big difference. I recently discovered that one such habit I have is that I always want to make the smallest possible change to the code I can. This often leads to simpler solutions. Today, I’m going to try to explore that intuition in a way that I hope will convince you of it being right.


A Thorough Introduction to PHP Arrays

Maybe you’ve never written PHP before. Maybe you’re thinking that you’re so experienced in it that this article isn’t for you. If you fall into either of those camps, please keep reading. My goal today is to give a pretty thorough understanding of what PHP arrays are, and to highlight a few less-known things that even experienced PHP developers may not have known or realized.


Working with WP_Query

wp_query header image
1. WP_Query: Understanding the Basics of Object-Oriented Programming

The WP_Query API uses a programming style called object-oriented programming, or OOP. Every WP_Query is actually a WP_Query Object, meaning an individual instance of the broader WP_Widget Class. If this setup doesn’t make sense to you, you’ll want to quickly learn the basics of object-oriented programming (OOP):


How To Stop a Post Publishing (Without a Featured Image) in WordPress with jQuery

Require Featured Image JQuery WordPress

This week’s post is something new. It’s new in two ways. First, rather than being a mostly text post, I made this first as a screencast. If that’s a speed and format you like, watch away. (You’ll probably need to watch at 720p or better resolution, ideally full screen. First time recording on the new computer made me forgetful about those issues.)


Using WP_Query Objects Without the Loop

Bookshelf WP_Query

I really enjoyed David’s article from a few weeks ago on the basics of functional programming as it applies to WordPress’s nested data structures. One of the nice things about working with him is that I learn a lot, too. Today, I want to continue exploring the somewhat-functional world David introduced, and suggest some freer ways of interacting with a very important entity in WordPress: the WP_Query object.


A Survey of the JavaScript Landscape for WordPress Developers

JavaScript has been a growing topic in the WordPress ecosystem for almost as long as it has existed, but a few recent events are forcing people to pay attention with even more urgency. First, in the last few years JavaScript has gotten ever more important to the topic of web development in general for reasons of user perception of speed, application richness, and more.