Baylor Rae'

$ cat "baylor rae's thoughts" > index.php

Benchmarking PHP Script Speeds

January 9, 2012 | Baylor Rae' No Comments

I recently learned about jsperf.com and I've really enjoyed looking at the speed results of different pieces of code. However, I couldn't find any sites that did the same for PHP and I've really wanted to test different ideas that … Continue reading

Designing better Checkboxes

December 23, 2011 | Baylor Rae' No Comments

When adding an <input type="(radio|checkbox)"> I recommend wrapping the whole thing in a label. Because it makes the clickable area bigger and allows the user to miss the text and input while getting the desired result. Here’s the basic markup. … Continue reading

Lazy Loading with PHP

December 23, 2011 | Baylor Rae' 2 Comments

I've been looking through a lot of PHP projects on GitHub lately and I keep seeing people including all their classes on launch. And unfortunately it's the reason I decide not to use their code. What is Lazy Loading Lazy … Continue reading

PHP PubSub

December 21, 2011 | Baylor Rae' No Comments

A little over a year ago I read a post on Nettuts+ regarding PubSub with jQuery. The idea is you create (or subscribe to) a collection of functions that are called when you publish an event in your application. It … Continue reading