Software Engineering in WordPress, PHP, and Backend Development

Category: Articles (Page 204 of 258)

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

My Workflows For WordPress: Hosted Projects

If you’re like me, then there’s a part of you that’s obsessed highly motivated to make sure that you’re streamlining your workflow as much as possible.

When it comes to the process of working on WordPress plugins, WordPress themes, and how to manage everything via source control, support forums, and managing bugs and their associated tickets, all the while making sure that you’re not duplicating repositories in order to make sure you’ve got the leanest workflow possible can be a bit of a chore.

Even writing (and possibly reading that last sentence) is just as indicative as to how tedious it can be.

So, with that said, I thought I’d share my workflow for how I divide up my codebases based on if they are hosted in the WordPress plugin repository and/or the WordPress theme repository, and how I deal with support, as well as how I manage self-hosted projects and their associated support forums, as well.

In this first post, we’ll cover the former.

Continue reading

Outsource WordPress Support (I Don’t, But What About You?)

I recently received a comment on my article on WordPress plugin support (that is, How Much is Too Much?).

Specifically, the comment asked:

So why not just outsource the support e.g. use a service that provides support to plugin end users on behalf of the plugin developers? Seems like that would save the developer a ton of time.

I thought that this was a great question, but as I began to respond, I thought that it may work better as a full post rather than a comment if for no other reason than to more easily share my own thoughts on the matter (but also to gauge other people’s opinions, as well :).

Continue reading

Developer Distractions: The Available Tools

"A computer on every desk in every home"

“A computer on every desk in every home”

When it comes to computing, development, and related technologies, it’s really easy to be inspired by individuals such as Steve Jobs – and many people in our industry are.

I certainly am.

But I also remember, back in the 90’s, reading a lot about Bill Gates, his mission to have a computer on “every desk in every home,” the things they were working on at Microsoft, and certain things about programming that I was too young to really understand (but found interesting, nonetheless).

Recently, I came a cross a really neat interview with Gates from 1986 in which he talks about a number of things – his experience in programming, Microsoft, where computing was headed, and so on.

Continue reading

Separation of Concerns with Queries and Helper Functions

In the previous post, I shared a little bit about the idea of separation of concerns – a concept that’s usually isolated to software development – and one way in which it can be achieved as it relates to working with WordPress templates.

But there’s always more work that can be done to help make our code as modular, reusable, maintainable, and readable (and any other buzzwords that I forgot ;) as it relates to programming projects.

One of the challenges of working in a system like WordPress is that it doesn’t necessarily promote practices that are typically seen in more classical programming environments, but – the way that I see it – we’re doing many of the same things:

  • Solving problems through the use of code,
  • Abstracting reusable components,
  • Querying for information from a database through the use of provided APIs,
  • Keeping areas of the code modular and related to the areas of the application and their best related,
  • …and more.

So why should we avoid trying to apply better programming practices to our code regardless of if it’s a high-end object-oriented application, or – say – a theme with a number of different templates, JavaScript, styles, and queries (and even more things such as post types and taxonomies depending on the nature of your project)?

After all, it’s all code, right?

Continue reading

Separation of Concerns with WordPress Templates

One of the biggest pain points in working with WordPress templates – or, really, any  PHP and HTML in general – is how we end up jumping from language to language within the context of a single file.

Obviously, this is unavoidable. I mean, the same thing even happens in other frameworks like .NET and Rails, but one of the things that I’ve seen that continually sets WordPress apart (and I don’t mean that in a good way) is that developers often don’t bother to spend time separating their concerns as it relates to the work being done in any given template.

A Vanilla Template File

A Vanilla Template File

For those who have been working in WordPress for several years likely know this, and know the frustration this causes.

For those who have recently hopped into WordPress development, there’s a strong chance you’ve likely been overwhelmed with some of what you’ve seen.

It’s a bummer, I know.

But it doesn’t have to be that way.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑