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.
Intelligent objects
Please note!! I have shamelessly stolen this article from my old and (even if I do say so myself) rather boring blog. So please ignore the terrible writing style! I’ll rewrite this article in the future, but until then, I present you with version 1.0 Anyone who has worked with the PHP/MySQL duo will no-doubt [...]
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.
