The Lurker
Worst code ever?
posted by ajf on 2007-10-31 at 09:01 pm
I was reminded by a message on Twitter just now of a blog post I saw recently in which Steve Vinoski claims:
On the dynamic language front, the worst code I have seen in my career has always, always, always been in compiled imperative languages, most often Java and C++.
My initial reaction then was: "The lucky bastard has never had to work with PHP", and this is exactly what I'm talking about:
I defy anyone to look at the function img_assist_render_image() in drupal's img_assist module and retain any semblance of sanity.
If you don't value your sanity, you can take a peek at img_assist_render_image in Drupal's source code repository.
Related topics: Quote of the day Rants Web
All timestamps are Melbourne time.