Every project acquires a logger and every one of them is shaped slightly differently — log($message, $level) here, error($message) there, a static call in the third. PSR-3 fixes…
A bug that only appears on one branch is expensive to reproduce when reproducing it means a vhost, an Apache restart and a line in /etc/hosts. PHP 5.4…
Two classes that need the same six lines and share no useful ancestor leave three bad options: copy the lines, invent a base class whose only purpose is…
Most prefixed declarations in a stylesheet are copied from a snippet that was correct in 2010 and has not been reviewed since. Some are still doing work at…
$.ajax takes success and error options, so most code passes callbacks in and stops there. It also returns a jqXHR, which has implemented the Deferred interface since 1.5…
Delegating to document is the version of event delegation that always works, so it becomes the default. Thirty handlers later, every click anywhere on the page walks the…