Tom McFarlin

Software Engineering in Web Development, Backend Services, and More

Page 196 of 433

Viewing The PHP Debug Log

When building web applications, especially with PHP, there are some tools that are invaluable.

These include things like a good IDE, a powerful debugger, version control, and so on. But one of the things that I think we often neglect against our shiny tools are basic text files.

No, I don’t think we need to take a step back from our usual toolset, let’s not forget files also at our disposal.

Case in point: Let’s say you’re working on a web application. If you’re using PHP, then one way to do this is to view the PHP debug log.

It’s a simple text file that gives you as much information as you could want about any page in your project. Continue reading

The Journey of a Presentation

One of the things I got into earlier in my self-employment career was trying to speak at local meet-ups, conferences, and so on.

Sometimes, circumstances make it difficult to accept those engagements (priorities and all :). But I’ve always found different types of people have different styles of presenting.

Continue reading

Install PHP CodeSniffer with Composer

A little over a month ago, I talked about how to install the PHP Code Sniffer in an MAMP-based environment. Though you can read the post in its entirety, the short of is this:

  1. Setup Pear
  2. Install the package via Pear
  3. Grab the rules for the WordPress Coding Standards
  4. Begin evaluating your code

Easy enough, right?

But here’s the thing: As mentioned in the article, some may opt to use Composer to install the package. In fact, someone also mentioned this in the comments.

And since Composer is the default dependency management application for PHP projects, it makes sense to use it, right?

Composer

The funny thing is, since I’ve written that article, I’ve been using Composer in a few projects. So I thought it would make sense to show how to install PHP CodeSniffer with Composer.

Continue reading

WordPress Options and Theme Modifications

When The Customizer (once called The Theme Customizer) became part of WordPress, we saw a resurgence in the Theme Modification API.

The Theme Customizer

At one point in WordPress history, the get_theme_mod and set_theme_mod was how we handled theme modifications (hence the function names). Then, we began to use the options table as a way to manage the various settings for our plugins.

And then we began to use the options table as an easy to way to store settings for our themes. It was like we moved the Theme Modification API to the backseat and pushed forward with options.

Should we have done that (or does it even matter)? And what’s the difference in these APIs, anyway? Why do we still have both of them, which is best to use and when?

Continue reading

Acquisitions

For the past few weeks (years, even), it’s so easy to find articles that read something like this:

Today, I am incredibly proud and excited to share that VMware has announced plans to acquire Boxer. The Boxer team will be joining the industry leader in
enterprise mobility as a part of the AirWatch® team within the VMware End-User Computing business unit.

Case in point: This is an excerpt of an article that I read just recently. And when I read that, it stirs a mix of emotions.

Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑