Software Engineering in WordPress, PHP, and Backend Development

Category: Articles (Page 128 of 258)

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

The Tension of Refactoring Legacy Code, Part 2

In the previous post on refactoring legacy code, I talked a bit about the challenges that we face not only as WordPress developers but as programmers in general as it relates to working with legacy code.

The short of it is that I believe we want to make sure the codebase is as optimized, clean, and well-organized as possible. But the reality of a project prevents us from doing this.

Deadlines can prevent us from refactoring legacy code.

Perhaps it comes in the form of the team we’re on; perhaps it comes from deadlines that are looming, or perhaps it comes from something else.

Whatever the case, we’ve established that a tension exists. And though I’ve talked about some general ideas as to how to deal with it, I haven’t really talked about my own experience in doing so.

Continue reading

The Tension of Refactoring Legacy Code, Part 1

In a post last week, I talked about various problem spaces that exist in WordPress, but I also briefly touched on the idea of practical applications as it relates to writing WordPress-specific solutions.

Specifically, I made the comment (more or less in passing):

When I was in school, I had to take a class in Computational Theory. For the most part, I’m more of a fan of practical application, but I know that much of said practical applications are the concrete implementations of proven theories.

And then I went on to talk about more theoretical topics as it relates to solving problems in a given computing space (for us, that’d be WordPress).

Computational Theory

Since I spoke about the previous topic at this particular level, I thought it might be fun talk about a more accurate or more practical approach to writing WordPress-specific software.

Recently, I’ve been working on a codebase that’s a few years old. The desire to want to refactor the whole codebase is strong (and I know I’m not alone in feeling this way when it comes to working with previous projects).

But this is not pragmatic, and it’s not so for some different reasons. So over the next three posts, I thought I’d share a little bit about the state of the project, managing the tension that exists, and how to do what we can when we’re faced with this type of situation.

Continue reading

Thinking Through Problem Spaces in WordPress

I enjoy talking with fellow developers about the problems they are thinking about as it relates to their field, and the problem spaces in WordPress is no exception.

That is, I enjoy hearing about what they are working on, what they are thinking about, or what they are tinkering with as it relates to their primary line of work.

Tinkering

For many who read this blog (and this includes myself though I’m the one actually writing it), we spend a lot of our time working within the WordPress space but does mean we spend a lot of time thinking about the WordPress space? Furthermore, does this mean that we spend a lot of time thinking about problems and potential solutions to what we see in our area?

First, this is not something that’s unique to our space. I believe that you can find this in any programming community.

Secondly, I think that this notion of thinking about a particular set of problems is something that’s a bit more abstract than what we usually discuss or see written about on other blogs.

Continue reading

A Problem Installing the Certificate With Let’s Encrypt

When it comes to making HTTPS available for everyone, the Let’s Encrypt project is great; however, if you’re running a shared host and you have an add-on domain, then there may be a problem with trying to install certificates for each of the sites.

Fortunately, many cPanel installations have an option for installing certificates by Let’s Encrypt.

A Problem Installing the Certificate With Let's Encrypt

But what happens when you try to install a certificate, and you see the following error message?

There was a problem installing the certificate. Please contact support for more information.

Depending on your set up, you may never see this message. But if you’re working within a shared hosting environment or you’re trying to configure a certificate for a set up with an add-on domain, then there’s a specific way to resolve this.

Continue reading

Running a Business in Technology, Part 2

Yesterday, I started a recap of the talk that I gave at WordCamp San Diego 2016 in which I discussed what it’s like to be running a business in technology.

The Beaches of La Jolla

The Beaches of La Jolla

If you haven’t read the article, the general points were:

  1. Technology drives our business
  2. We should elegantly solve problems
  3. This helps us; This helps our users

And that was the first part. The second half deals with how actually to keep up with technology, especially as it changes seemingly every single week.

This part of the talk focused on those who are managers of developers, those who are developers managed by someone else, and those who are self-employed.

Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑