Software Engineering in WordPress, PHP, and Backend Development

Category: Articles (Page 145 of 258)

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

Showing Poor Source Code

The act of showing poor source code either via our blogs or our open repositories can be a scary thing. I mean, we’re putting out for others to read and critique that we’ve worked hard to complete.

Sometimes we do it thinking that we’re on the right track; sometimes we do it when we’re asking for it.

Writing

In the latter case, I’d say that it’s not so scary – we’re asking for critique. In the former, isn’t it a bit more challenging when we get that criticism?

That is, isn’t it harder to deal with the criticism that comes on to something we thought we were doing right?

Of course. Does that mean we should stop sharing our code? No way.

Continue reading

Tips For Daily Blogging (And How To Garner Blog Post Ideas)

Like anyone who blogs are regular intervals, be it a few times a week to daily, I’m asked how I write daily. In short, I wish I had a simple recipe to explain how to do it.

But I think this is something unique to every person.

Sure, I think people should write daily even if they aren’t publishing their content on a blog. I believe something happens when you articulate your thoughts via the written word.

  • You become better at thinking through some of your own opinions.
  • You get better at presenting ideas to other people even if they will result in a debate.
  • You reason through your own convictions for why you feel the way you do about a given topic.

Sure, this sounds a little silly when talking about writing about development. It’s not, though.

Our field is one that’s built on the idea of logic and having things work in a logical and efficient manner. It’s important to make sure that our reasons for why we do the things we do have been reasons through, as well.

But I’ll talk more on that in a moment.

Instead, back to the original question: How does one get into the habit of daily blogging?

Continue reading

Using Third-Party Code Is Not Immature

One aspect of growing in a career in development is knowing when to write your own code and when to use the work of others.

So many libraries available via others work.

So many libraries available via others work.

This isn’t a hard and fast rule, but when we start out it’s like we want to roll everything on our own. I don’t know if it’s because we want to prove to our employer, our clients, or ourselves we can do it. Maybe it’s a mix of the two or maybe we just welcome the challenge.

Maybe it’s all the above.

Whatever the case, we’ll eventually work on larger projects and eventually become more specialized. That is, we’ll identify what we need to write and where we can use an existing library.

Continue reading

When Offering Programming Advice

A few weeks ago, I shared a post in which I walked readers through how to achieve something within the context of WordPress. It essence, it was programming advice.

Programming Advice

The post was received okay, though it wasn’t without its [valid] set of criticism (which I’ll address later). Luckily, most of the people who responded did so via comments and emails explaining why they took issue with part of the code, and how they would go about addressing it were they having to solve a similar problem.

Not everyone was like that (and they never are). Instead, if you share any code of any type in any fashion with anyone you’re likely to get some type of response reading something like

It’s okay, but it’s not how I would do it.

The problem with statements like this – especially for those who want to get better at what they’re doing – is it implies there’s a better way, but the way isn’t offered up as a solution.

Bummer.

Continue reading

Programming Frustration (And Elation)

It’s one of those nights where I’m sitting at my desk after spending the majority of the day at the computer. This used to be the norm when I was younger, but now I try to keep my hours at my desk a bit more limited for a variety of reasons.

Sometimes, as we all know, work ends up keeping us up a little bit later and in places a little bit longer than we’ve anticipated.

Late Night Laptop

In this instance, I’m working to track down a bug I’ve been after for a better half of the day and it’s something I need to get done now because later will be too late.

There’s other work to do and this is something that needs to be shipped, anyway.

If you’re someone who writes any type of code for a living, then you know the feeling of programming frustration I’m talking about: It starts off at a level of looking forward to getting back into the code with a level of confidence thinking:

“Okay, I’ve had time to step away from it. I should be able to come at this with a fresh perspective.”

Because sometimes that’s exactly what happens isn’t it?

Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑