Reading Today
Auto-Sizing Columns in CSS Grid: `auto-fill` vs `auto-fit`
"One of the most powerful and convenient CSS Grid features is that, in addition to explicit column sizing, we have the option to repeat-to-fill columns in a Grid, and then auto-place items in them." read full text »Reading Today
Write code that is easy to delete, not easy to... — programming is terrible
"“Every line of code is written without reason, maintained out of weakness, and deleted by chance” Jean-Paul Sartre’s Programming in ANSI C. Every line of code written comes at a price: maintenance. To avoid paying for a lot of code, we build reusable software." read full text »Reading Today
JavaScript At Scale — Achieving High Velocity — MLS Digital Labs — Medium
"Before we talk about JavaScript in context, there are some platform-independent things that can make your life much easier. JavaScript is powerful. It provides object composition with prototypal inheritance as well as functional programming." read full text »Reading Today
Object-Oriented JavaScript — A Deep Dive into ES6 Classes
"Often we need to represent an idea or concept in our programs—maybe a car engine, a computer file, a router, or a temperature reading. Representing these concepts directly in code comes in two parts: data to represent the state and functions to represent the behavior." read full text »Reading Today
PHP Sessions Can Hurt Your WordPress Performance
"Many of the projects that we onboard come with crippling performance issues that make their WordPress sites slow, resource-hungry and incapacitated under load. Today we’ll look at another common problem that we often see – PHP Sessions." read full text »Reading Today
Back to the Future in 2016
"A funny thing happened on the way to 2016. We asked some of our smartest friends in the web design and development communities what new skills they planned to master, or what new focuses they intended to bring to their work, in the new year." read full text »Reading Today
40 Million hits a day on WordPress using a $10 VPS
"I recently tested many of the biggest names in managed WordPress hosting in my article Managed WordPress Hosting Performance Benchmarks. I am preparing to do a second round of testing with double the number of companies on board. Some of us like to setup servers ourselves (or are cheap)." read full text »Reading Today
Setting up PHP 7 Servers with Laravel Forge and DigitalOcean
"One of the most popular requests in our end-year reader-satisfaction survey was more PHP 7 content. In this quick guide, we’ll cover two ways to bring a PHP 7 server online on DigitalOcean – a popular VPS provider." read full text »Reading Today
Simple Guide to Finding a JavaScript Memory Leak in Node.js
"Few months ago, I had to debug a memory leak in Node.js. I found a good number of articles dedicated to the subject, but even after carefully reading some of them, I was still pretty confused on what exactly I should do to debug our problem." read full text »Reading Today
How To Use Asynchronous PHP In WordPress
"PHP executes code in series, which means one thing is done after another. This can be problematic when you need to do a lot of processing in one session or if you are relying on calls to external APIs." read full text »Reading Today
Introducing dumb-init, an init system for Docker containers
"At Yelp we use Docker containers everywhere: we run tests in them, build tools around them, and even deploy them into production. In this post we introduce dumb-init, a simple init system written in C which we use inside our containers." read full text »Force Editor Reparsing with Codemirror
I’m working on a personal project where there’s a comparison of original text to text being typed. When the original text is changed I wanted to be able to force a reparsing of the text being typed by the user. instance.setOption('mode', instance.getOption('mode')); instance is the what is returned when you instantiate your Codemirror editor. The … Continued
How to Force Close One (unruly) Tab in Chrome

Wow, the fan is blowing and the page is continually loading and working on some js (I assume) I screwed up. The tab won’t close by x or cmd+w. In chrome; Window->Task Manager, select your tab and End Process. And voila. How have I missed this?
Do not ever use the guid element for creating links – ever – ever
I was recently (I always seem to start posts with that phrase) learning how to update a clients posts post_title, slug (aka post_name in the db) and guid when a post title was changed programatically. I was using get_sample_permalink() in combination with wp_update_post() to generate a permalink and update the post guid along with the … Continued
WordPress eXtended RSS (WXR) file import error: Sorry, there has been an error. Failed to write file to disk.

I was working on a clients Dreamhost VPS server and received an error: Sorry, there has been an error. Failed to write file to disk.. That’s not something I’ve come across before. Some googling didn’t turn up much but this InMotion hosting support page did mention a full /tmp dir. A look at the php … Continued
Force Post Author Comments to Moderation in WordPress
By default in WordPress when an author of a post comments on their own posting the comment is automatically approved. This makes sense when authors are associated with the site, have access to admin, etc. There are cases where content from the general public is used to create posts and while the user is logged … Continued
Always Unset Values Passed by Reference in a Loop
I’d always read to unset the variables passed by reference in PHP’s foreach loop. Here’s an example: foreach ($posts as &$post) { $current_post = self::get_current_version_for_post($post->ID, true, true); $post->current_post_modified = mysql2date('U', $current_post->post_modified); } unset($post); In the above code I was looping through a set of parent posts and using a custom method to get what I … Continued
Allow html in Contact Form 7 error messages
Contact Form 7 has a filter where one can alter the messages being sent back to the browser called wpcf7_validation_error. A simple htmlspecialchars_decode altering the $message variable before returning will do the trick. This function will run on any error for any form you have in your site (any CF7 form that is). If you … Continued
Trusting the Development Process (spoiler: it’s not about trusting)
The Setup I’ve recently started using quill.js in a personal project I made up; specifically so I could build something with quill.js. The app is geared towards learning pieces of text by rote learning. The user will pick a piece of text or enter their own in one text editor and then retype it in … Continued