Make your code simpler to read and simpler to debug by breaking apart your conditional statements and exiting the function whenever possible. This helps to: make your code simpler ensure your functions have one purpose keeps your functions smaller makes your code easier to read makes your code easier to debug
Did you know you can not only use Composer to manage dependencies, but actually develop a package alongside your dependencies? It’s called –prefer-source and boy is it neat. The gist of it is this: you define a repository and require the package as you would for a normal dependency, but when you go to run […]
Recently I ran into an issue where an installation of WordPress that had never had any issues updating stopped being able to update via the admin update button. These three commands fixed the issue.
This was a fun little issue to come across – I’ve been using Nginx as my local development server and so far have had few complications, however anytime I went to upload an image I would get a very vague ‘HTTP Error’ from WordPress. After googling and coming up with everything ranging from disabling plugins […]
You know that feeling when you’re setting up a brand new server and it’s not set up the way you’ve spent years tweaking it to be? As opposed to the following (setting up a new linux box, not even ls works how I like it). After taking a brief glance at alias.sh, I decided I […]
First off, I have to give major thanks to Mr. Evan Solomon for very graciously helping me diagnose and fix a very hard to pinpoint bug with NGINX and WooCommerce. I had recently moved a customized WooCommerce site from MediaTemple GS (which runs Apache as its webserver) to a custom built Linode VPS (which I […]