Nate Krantz

Engineering leader. Love growing diverse teams and shipping amazing software. Outdoors enthusiast, music producer, and artist.

Using Ansible to synchronize your development machines - Part 1

Recently I've found myself with several machines (home, client1, client2, etc) and got tired of setting up my bash environment, themes, and libs to run my development environments. To combat this, I thought I would give automating some things a try using a few of my favorite tools.AnsibleAnsible is an automation tool used to provision machines to be configured and ran in a very specific and reproducible way. You might do things like:Configure a web server to run your application.Setup user accounts, folders, and permissions on a remote host.Deploy your application.While containerization (Docker) has eliminated the need for Ansible for a lot of my use-cases, it's still a great tool if you ever find yourself...

Code Quality Hacks in PHP

Here's a few brief wins you can make to make you more productive in your environment: Composer Composer is PHP's npm or gem and while its best practice to keep your composer dependencies locked to a composer.json (e.g package.json) there are a few packages that you will want to install globally that help you out regardless of the project you are working in. Keep in mind though, if you are on a project that has a CI build (which it should) then you need to save dev dependencies so the build can run them too. Setup For starters, you need a version of PHP on your machine and you'll need to do this: php -r "copy(...

Just another PHP rant

Let's not go down the PHP is dead, long live PHP rabbit hole that seems to permeate public perception of this language. We've all read a a fractal of bad design. We've all probably worked on Wordpress. Some of us might have dabbled in Hack. PHP 7 is everything apparently. So it goes... Brief history Things have definitely changed over the years. I remember my first days of writing code in PHP. Lots of globals, mixed view logic, spaghetti everywhere, un-sanitized inputs, etc... A lot of stuff that beginners have absolutely no concept of. PHP doesn't care though, it lets you use it as you see fit. It is so incredibly easy to get a page to print stuff with...

Writers Block and Brain Dump

Looking back the last year has been pretty hectic. Recorded an album with my band, went down some new music rabbit-holes, had the company I work for get acquired, got serious with weight lifting, and didn't write jack here about any of it. Two sides of the same coin Words have been hard to come by, both here and trying to get some songs done. Going to kick this up again to get some ideas out there and work my brain out. In the meanwhile, here's some stuff I've been into thats interesting and is worth a shout out. Podcasts Sodajerker on Songwriting Great chats with legendary musicians, producers, and songwriters that focuses on the songs and stories that went...