My Most Elaborate Code Comment Ever
This is the most elaborate comment I may ever have written, and am thinking of every now and then.
Things I Learned While Replacing a GitHub App with GitHub Actions Workflows
Say goodbye to tedious, time-consuming processes by using GitHub Actions! In this post, you’ll discover the valuable lessons learned while replacing a GitHub app with workflows. You will find the transition process explained in detail with tips and tricks to improve efficiency and streamline your workflow. Learn from the real-world experience shared in this post, and take advantage of the power of GitHub Actions to simplify your development process and save valuable time.
Passing Data from PHP to JavaScript
When passing data between PHP and JavaScript in WordPress, two methods can help. Use wp_add_inline_script to easily pass any data and perform dynamic code logic. Then, access the data from a single file to limit global variable access and allow easy inline documentation.
3 Tips for Long-Running Commands on a Remote Server
When working with long-running commands on remote servers, tools like screen can make your life easier. By starting a screen session, you can execute multiple commands without worrying about disconnections. List and reattach to active sessions, redirect output to a file, or use time to profile the execution time.
Feedback
In this post, I share my experience with Culture Amp’s Skills Coach courses on Feedback, which are aimed at helping improve communication and leadership skills. These courses can help to better demonstrate people skills of communication and leadership. I discuss the concept of feedback, what it is and what it isn’t, how to give and receive feedback, and the importance of asking for permission to give feedback.
Friction Points
Working on client projects, I’ve encountered various friction points. Whether it’s a difference in processes between projects or an odd one that deviates from the norm, it’s important to streamline and standardize your project workflows. By assessing and documenting potential friction points such as local development, dependencies, scripts, config files, and more, you can improve efficiency and share useful resources with your team.
GitHub: Share Canonical URLs
When including a reference to some line(s) of code in a GitHub repository, please do this by using the canonical form of the URL. You can do this by pressing y when browsing a single file on GitHub. This will replace the “pretty” URL with a version that includes the exact commit of the file […]
Stop and (Help) Fix It
A little over two years ago, I stumbled over a blog post that I resonated quite well with. It’s called Go see. Stop and fix it., and it’s by Leon Tranter, a certified Professional Scrum Master from Sydney, blogging about all things Agile. The blog post covers two concepts of Lean Software Development, which is […]
How to (Force) Update Your composer.lock
When using Composer, you might know that you should almost always include the composer.lock file in VCS. Now, the lock file includes a hash, which is generated from the contents of the composer.json file, and more. Therefore, changing something in this file, for example, the description, or something in the extra or config sections, will […]
Proper File Checking in PHP
TL;DR: if you want to read a file, use is_readable, not file_exists. Over the last year or so, I think I reviewed about a dozen PRs—both Human Made and external—with something like this PHP code snippet: While this code works like 99% of the time, it’s not really doing what people thought it did. What […]