Sympathy for the Devil

Those of you who have been around, probably know that PHP is one of those languages that people just love to hate. For any number of reasons. Yes, it has a vast global namespace full of redundant functions, and yes, their names don’t make sense half of the time, and of course, the order by which you pass the arguments seems to depend on how drunk the developer of that particular function was when he wrote it.
That’s all true, and I get annoyed by certain aspects of the language, too. But I feel as though PHP has been bashed enough. It’s flawed, chaotic and is a prime example of a language design style I call “Design by after-thought”. But I’m going to try to write a post in defense of PHP nonetheless. I will be responding to 2 arguments that most anti-PHP rants seem to share: Language design and PHP’s alleged legacy. However, I will not be arguing that PHP has produced great things, point at yahoo! or facebook. That wouldn’t be fair. I’m talking about a more general, abstract and indeed historic legacy… Continue reading

Advertisements
Posted in Uncategorized | Tagged , | Leave a comment

jQuery-itis

As a webdeveloper, I have of course used jQuery. A lot. And of course, when I first learned about jQuery years ago, I was taken by it, completely. I loved how I didn’t have to write a function with that huge try-catch block, just to do a simple AJAX call, for example. For those of you who weren’t around back in the days where IE6 was still supported, or for those of you who suffer from accute jQuery-itis, here’s a snippet of code to show how we used to perform a simple AJAX request: Continue reading

Posted in webdevelopment | Tagged , , , , | Leave a comment