Software Engineering in WordPress, PHP, and Backend Development

Author: Tom (Page 372 of 427)

Three Thoughts on Improving Code Quality in Existing Projects

I’m currently working on a project that I inherited from a previous team in which I’m working on improving the code quality. The details aren’t terribly important, but here’s what you need to know to have enough context for this post:

  • I didn’t design the application, but the client wants to keep the existing design and feature set
  • The budget only allows for improvements agreed upon during the planning phase – nothing more
  • The initial codebase was developed by someone else that opted to do things in a less elegant way

As far as the last point is concerned, “less elegant” could be chalked up to laziness, or it could be chalked up to ignorance.

When possible, I try to believe the best rather than assume the worst, so I’ve opted to go with the fact that the team was under a deadline to ship rather than to build an elegant solution.

That said, I think that all developers have found themselves in this position: We’ve inherited – or contributed – to some codebase, looked around, and said:

I wouldn’t have done it that way.

Often times, the implication is that our way is a better way than the way it’s currently done. In some cases, that’s right, but if developers often think this and another developer wrote said code, where does that lead?

Anyway, this is not the first time I’ve found myself in this position, and it certainly won’t be the last, but it seemed like something worth discussing if for no other reason to share my thoughts on it.

Continue reading

Another WordPress Podcast?

One of my favorite things to do when going on a run or a long drive is to queue up a few podcasts and listen to them. Generally speaking, most of the podcasts that I listen to are directly related to things I’m interested in and/or interested in learning more about.

Then again, isn’t that what everyone listens to?

With that said, I can honestly say that I’m not familiar with a significant number of high quality WordPress podcasts. In fact, the one’s I’m most aware of are published by WPCandy, and Jeff at WPTavern (on which I had to pleasure speaking last year).

I have an idea for another type of WordPress podcast, but I’m wondering if there’s room for it, or if the reason there are so few is because there’s so little interest.

Continue reading

Using jQuery Confirm To Enhance Your User Interface

When it comes to building themes, plugins, and other projects on top of WordPress, I think there is room for improvement when it comes to introducing basic user interface principles.

For example, I’ll be the first to admit that there are certain things I know – such as make users confirm before completing a destructive action – that I’ve not always done regularly.

I’m significantly better at putting these things in place now than I once was, but it’s little details like this that can really set your work apart from others and that can enhance the user experience. Not to mention, a lot of this stuff is backed by research in psychology.

Anyway, I’m all for sharing various tools and utilities that help make our lives as developers a bit easier especially when it comes to improving our user interfaces.

jQuery Confirm is one such plugin.

Continue reading

Understanding WordPress Actions and Filters

Understanding WordPress Actions and Filters

In my experience, one of the toughest concepts for new WordPress developers to grasp is the difference in actions and filters.

By this, I don’t mean that they are difficult to use. In fact, I think most developers have a pretty easy time picking up how to hook their functions into hooks and filters when needed, but it seems as if its a bit challenging to grasp WordPress page life cycle and how actions and filters fit into the overall context of WordPress.

So in my latest article at Envato, I try to provide a clear understanding of WordPress Actions and Filters.

Continue reading

My Strategy For Organizing JavaScript in WordPress

Yesterday, I shared my strategy for using LESS in WordPress and enjoyed the comments that followed. In that post, I also mentioned that I have a similar strategy that I use to maintain my JavaScript files.

This particular aspect of development is one that I’m still experimenting with; however, there are certain aspects of it that have remained constant.

To follow up with yesterday’s post, I thought I’d share several things that I’ve consistently done that have improved development as well as some of the things that I’m currently doing that are proving to be useful.

With that said, here’s my current strategy for organizing JavaScript in WordPress.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑