Software Engineering in WordPress, PHP, and Backend Development

Category: Articles (Page 159 of 258)

Personal opinions and how-to’s that I’ve written both here and as contributions to other blogs.

Should We Share Old Code?

There have been times where I’ve considered pulling code down from the WordPress plugin repository or from GitHub because the way in which I write my code now differs from how I wrote my code when I was working on those projects.

GitHub Profile

And surely you know what I’m talking about: It’s not that the plugins don’t work and it’s not that they necessarily cause problems for anyone, but the open source nature of what they don’t necessarily represent what we’re capable of doing now or how we’re capable of doing it now.

Does that make sense?

Continue reading

In Development, Always Be Learning

Earlier this week, I wrote a post about how we use the term “WordPress Admin,” how I suspect that we’re using it incorrectly, and I discussed the significance and importance of consistency of terminology when working with customers and clients.

The post generated far more discussion than I would have expected, which is a good thing, but one particular comment struck a chord with me:

Tom,

I sent a Jr. level WP developer through your TutsPlus course on plugin development. You use the word “Admin” more times than I could count! You even use it for file names, etc.

What’s up with that, brother? I respect you so I had to chime in with that lil’ observation.

I love comments like this because not only does it hold us accountable to our own actions, but it also gives us an opportunity to show that throughout the course of whatever it is that we’re doing now may not what we’re doing tomorrow.

Continue reading

Tips For Being A Productive Developer

I think one of the more popular discussions that comes up among developers (and designers) from time-time is how to be productive as possible. Personally, I’d go as to far as to say that it gets harder and harder each year (let alone each, say, quarter).

By that, I mean we try to use tools such as IRC, Skype, and Slack to mitigate the amount of email that we have, but they also require that we divide our time between focusing on our tasks at hand and then mulitasking between however many other applications are open (such as Twitter, Facebook, email, and whatever else).

I’m not knocking this at all! It just doesn’t work very well for me. Anyway, just as others like to share their tips for how to be productive, I thought I’d share the ways in which I try to achieve developer productivity (because that in and of itself is a challenge enough) rather than, say, general productivity.

So here are a few things that I do – and I’m curious to hear yours, as well.

Continue reading

Using The WordPress Admin is All Wrong

I could completely be in the minority in what I’m about to say, but when I see phrases such as “The WordPress Admin,” I cringe a little.

Maybe I’m being a bit legalistic, but hear me out: All throughout the backend of WordPress, we see the phrase “Dashboard.” In fact, it’s the first menu item that we see.

Continue reading

Organizing Files For The WordPress Settings API

This is the final post in a series on An Object-Oriented Approach To The WordPress Settings API. Part 5.

Over the last few posts, I’ve covered topics ranging from creating interfaces to base classes and how to implement and inherit from both. One outstanding issue with the approach that this has covered thus far is that it didn’t take into account any type of file organization.

Anyone who has worked with any project of any size knows just how important having a clear organizational structure can be.

Later versions of PHP have feature of namespaces which can help us to further organize the code, but if you’re having to work with an old version, you don’t have that luxury. That’s no excuse for not properly organizing your files, though. You can still mimic what the namespace organization may look like.

So in this final post, I wanted to cover the approach that I normally take when organizing a plugin like the one we’ve been building.

Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑