Software Engineering in WordPress, PHP, and Backend Development

Category: Articles (Page 216 of 256)

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

The Importance of Timing WordPress Functions

After this post was published, Brady Vercher also reminded me of two WordPress-specific functions.

When it comes to working with the WordPress database – or any application that provides an API for data serialization – I try to always stick with the API unless it’s absolutely unavoidable.

For the most part, I tend to favor APIs that provides the necessary functions for reading and writing data, and I generally assume that they have everything built into them that they need in order to make data storage and retrieval as secure and as fast as possible (though I’ve been burned by this assumption before).

In some cases, this is true; in others, not so much.

Case in point: I’ve been working on a large intranet application for someone that’s built on top of WordPress. One component of the application requires the import of a relatively large set of data in CSV format that’s also piped through a third-party plugin.

Unfortunately, there was a bottleneck in the code that was causing timeouts on the remote server.

  • No matter how high you set PHP’s timeout settings, a third-party script monitor would always kill it first. I’m actually in favor of having these types of monitors running.
  • Long scripts create a terrible user experience so I wasn’t happy with the performance even when I was able to marginally improve it.
  • Isolating bottlenecks can be a tedious process, but can seriously pay off if you spend the time to do it.

When I finally located the bottleneck, it was occurring in the third-party plugin.

Continue reading

Good Development Takes Time

Since working in software, one of the things that I’ve yet to actually get used to is how quickly people want things delivered.

But I’m not saying this as someone who has built things for others, but also as someone who enjoys using things other people have built, and as someone who cares deeply about trying to get better at what I do for a living.

The bottom line is that development takes time, and good development takes even more time, but neither of the statements are completely one-sided.

Continue reading

My Day-To-Day: Updating Old Blog Posts

For anyone that’s maintained blog for any length of time, you’ve likely hit a point where you’ve changed the format of your blog, changed the content of your blog, changed the way you write, or simply gotten better at actually publishing content.

And if any of the above are you true, it’s likely that you’ve had to determine whether or not you want to go back and work through the process of updating old blog posts or leave them as they are.

Depending on how long you’ve been blogging, this could be a huge task; for others, it may not take more than a couple of hours.

Continue reading

WP Comment Notes (And What We Can Learn From It)

About a year and a half ago, I released the first version of Single Post Message for WordPress which is a simple plugin specifically for adding a notification at the top of the bottom of a given post.

For whatever it’s worth, it’s one of the plugins I’ve enjoyed creating the most not only because it scratched my own itch, but also because it’s an extremely lean, focused plugin that aims to solve exactly one problem.

The other day, Pippin William tweeted the following:

To which Japh Thomson replied:

And to which Andrew Norcross built and responded with:

https://twitter.com/norcross/status/384463729578225664

You can read the entire conversation, but there are three things that I really dig about this particular exchange and the plugin that came out of it. But before discussing those, I think its worth checking out the WP Comment Notes plugin itself.

Continue reading

« Older posts Newer posts »

© 2024 Tom McFarlin

Theme by Anders NorenUp ↑