PHP Namespaces and Autoloaders, Reviewed

Several years ago, I wrote an article about this, and it was really a mess, but the PHP community understanding about autoloaders and namespaces was a lot worse than it is today. This article attempts to amend and supercede the original, and explain the magic.

Continue reading PHP Namespaces and Autoloaders, Reviewed

Facebook-style Previews

I was thinking about how facebook updates parse out the url, then construct a nice looking preview. I think what it takes is scanning the textarea for a url, and then using ajax to tell the server to fetch a summary of the page at the url. get the data back, and insert it into a template, and reveal it.

This is a republication of a post from January 2012. I would not write it this way today.

Continue reading Facebook-style Previews