News for hackers. Stuff that matters.
Re:PHP Commandments by jacquesm on Tuesday April 30, 2013 @10:27AM (#5632338)
The completely brain dead naming conventions for function names (or rather, the lack thereof) is another. PHP has grown organically, just like the web, to fill a very irregular shaped niche and it shows that history in all the gory little details. That said it made me more money than any other programming language combined (including C, but it's a very close second).

Probably a lot of people have similar feelings towards Ruby, getting stuff done is what pays the bills.

Re:PHP Commandments by lmm on Tuesday April 30, 2013 @10:38AM (#5632400)
I haven't seen anywhere near the same level of hate for Ruby - and I can't help thinking it's because PHP is objectively worse. A lot of the problems listed in the article wouldn't arise in a language with a better module system (such as Ruby), for example.
Re:PHP Commandments by Luyt on Tuesday April 30, 2013 @10:48AM (#5632460)
Quick! Was it ($haystack, $needle) or ($needle, $haystack) ?
Re:PHP Commandments by jacquesm on Tuesday April 30, 2013 @10:53AM (#5632485)
Or better still... one where it doesn't matter:

http://www.php.net/manual/en/function.implode.php