I’ve been using PHP CodeSniffer to help me following coding standards. The WordPress Coding Standards are a great resource and the basis of the rules I follow. I have made a few modifications based on my personal preferences.
The editorconfig project provides a powerful tool for standardizing the general coding standards used in a project, specifically in regards to: indent_style, indent_size, end_of_line, charset, trim_trailing_whitespace, and insert_final_newline.
There are a number of different inline conditionals I use when working with PHP (i.e. ternary conditionals and the null coalescing operator). As a reminder of how some of these common inline conditionals work, I put together this table for reference.
These are my reminder notes on how to quickly populate the LICENSE information for one of my projects from the command line.
Building a mini-marshmallow blow gun was a lot of fun and quite affordable. With some PVC pieces and an inexpensive cutter, you can craft one of these beauties.
The Bootstrap 4 documentation includes their list of Bootstrap 4 supported browsers. When deciding whether or not to use Bootstrap 4, you’ll want to compare the list of supported browsers to the browser information of your visitors in Google Analytics (Audience > Browser & OS – you’ll probably want to drill down on the Internet […]
Traditionally, when working with values in WordPress they would be stored in post meta. Now with the new upcoming WordPress editing experience (Gutenberg), these values are often stored right in the content. These are some of my notes on how they are stored.
There are lots of ways to target a git commit and one way that I often forget to use (but really like it when I remember) is targeting a specific git commit by the commit message.
The checksum is like a fingerprint for the file. A file is processed through a known algorithm which results in the checksum, a.k.a “hash”, which is a string of letters and numbers unique to that file, e.g. 8ab686eafeb1f44702738c8b0f24f2567c36da6d. If the file is modified, the resulting checksum will be different. This allows a quick way to […]