Write Clean PHP Code (or “else”)

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live — John WoodsWriting clean code isn’t hard, but sometimes getting a piece of code to work right can get in the way of making it maintainable. Unfortunately, as…

Never Install a Thing Again (Except Docker)

I’m not gonna lie… it took me a while to adopt Docker. A devout Vagrant follower, Docker just didn’t feel mature enough to me until very recently, but boy have I seen the light. As a development environment, Docker has completely replaced Vagrant for me, but what really…

Magento on Vagrant: Lessons Learned

Let’s get this out of the way first: Magento is by far the single-most inefficient framework I have ever had the displeasure of working with. While I’ve made a similar statement about Craft CMS in the past, after a week working with Magento 2 I happily rescind my…

Writing Messages on the GitHub Calendar

You know the contributions calendar grid on GitHub profiles? The one with all the pretty green squares? What if you could write a message within that box? That’s exactly what a friend of mine asked me a few months ago. At first, it seemed like a silly question, because…

MIME Type Validation Isn't Good Enough

An uncomfortable majority of companies that offer high storage limits for specific file types have a major problem: MIME type validation isn’t good enough. If you’ve ever had to implement file validation for user uploads, you’ve probably relied heavily on MIME type validation to ensure that the…