Interface and Exception

Interfaces and exceptions have some synergy going on about them. Recently, I have been employing exceptions to preserve (meaningful) interfaces and redirect control back to the calling context. It is surprisingly elegant — at least compared to some alternatives. I've seen functions trying to return 2 different classes of information to…

PHP, The Great Parts

I originally meant to entitle this with "PHP, The Good Parts" but a quick google says there is actually a book of the same title. 😩 No matter though since the good parts of PHP are, in fact, actually great! While PHP has made incredible progress in recent years, it continues…