4 ms·
Couldn't agree more with E_ALL|E_STRICT. The current legacy system I am maintaining took me 2 weeks to clear up 90% of the NOTICE errors for using undefined va
by SkippyZA 13y ago
Couldn't agree more with E_ALL|E_STRICT.
The current legacy system I am maintaining took me 2 weeks to clear up 90% of the NOTICE errors for using undefined variables etc.
Dirty code is dirty, and it is because of this that PHP has received so much negative publicity.
- jacquesm 13y agoThe 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.
- lmm 13y agoI 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.
- Luyt 13y agoQuick! Was it ($haystack, $needle) or ($needle, $haystack) ?
- jacquesm 13y agoOr better still... one where it doesn't matter: http://www.php.net/manual/en/function.implode.php http://www.php.net/manual/en/function.implode.php