I was looking at some code from a number of years ago and was horrified by the amount of ‘clever code’ in there. After decoding it, I immediately rewrote it. Then I set myself a challenge. Write the dirtiest expression ever to besmirch a hard-drive, then decode it in a blog post. I present to you with the fruit of my labour.
Singletons in PHP
Design patterns can be boring things. Especially when the language you’re using keeps changing syntax. I had a bit of trouble implementing a Singleton in PHP, and so I have written this tutorial to explain the errors of my ways.
