whateverthing.com

July 4, 2013

Here are a few interesting articles I've come across lately:

» Doug Engelbart, Who Foresaw the Modern Computer, Dies at 88

Engelbart invented many of the concepts we take for granted today. While we may have transitioned away from one of his inventions, the computer mouse, we still heavily use many other concepts that he pioneered. You should also read this article about some of the hardships he faced later in his career.

And of course, you should watch "The Mother Of All Tech Demos" and be amazed at what he had accomplished in 1968.

» Atomic Deploys at Etsy

This is a walkthrough of an advanced technique that Etsy uses to separate their opcode caches & enable deployment with no downtime. Essentially, they resolve the symbolic link to the current deployment prior to loading PHP, so when the opcode cache writes out its supporting information, it points to a physical disk location. Then, they can swap the symbolic link at any time without having to restart the web server or worry about cache issues resulting from the same HTTP request accessing old and new files at the same time.

» Make $ vagrant up yours

This is an intro to Vagrant as written by the architect of PuPHPet (which I recently wrote a quick walkthrough for). The article is quite in-depth on topics such as the vagrantfile, Puppet integration, and of course PuPHPet.


Well, that's all for tonight. Thanks for checking in! :)

July 1, 2013

In Part One and Part Two, we built a small web application with a little bit of interactivity. However, it has some problems - it might run fine for a little while, but eventually things will require maintenance. Someone may want to pretty it up, for example, or you might want to add a feature like thumbnails. After being away from the code for six months or a year, you might come back to it and wonder "WHAT was I thinking?!"

This begins a very common sequence in our field: confusion, denial, anger, refactoring, and acceptance testing - the five stages of code grief.

June 28, 2013

Composer is a dependency management utility for PHP projects. What that means is: you can save time on your projects by importing libraries that other developers have written.

For this series of examples, I plan to build a basic image uploading script using the Silex PHP microframework. I want to try uploading images from my iPhone using Mobile Safari, because I have heard of some real-world limitations in that situation that I want to explore. Part One will deal with the basic setup and a slightly different approach to the standard "Hello World".