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
The WordPress Event System: Understanding Hooks in the Broader Programming Context
WordPress’s hook system is an example of an “event driven” architecture or programming system.
Gentle Introduction to Functional PHP for WordPress Developers: Using Filter and Map on Arrays of Posts
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
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
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
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.