3 ms·
The thing is, the language doesn't fully suck. It has a few sucky parts that are more or less easy to ignore. As has been said elsewhere in this topic[1], the
by wvenable 15y ago
The thing is, the language doesn't fully suck. It has a few sucky parts that are more or less easy to ignore. As has been said elsewhere in this topic[1], the code one produces in PHP is pretty equivalent to what you do in most other languages.
[1] http://news.ycombinator.com/item?id=3824767 http://news.ycombinator.com/item?id=3824767
- TylerE 15y agoSo, what exactly ARE the good parts? * Syntax? Sucks * Arrays? Or wait, are they hash tables? Sucks * Stdlib? Sucks * Performance? Sucks
- mseebach 15y agoSyntax is awful, granted. PHP doesn't have arrays, it has hashtables. Although PHP probably got there by accident, consensus in dynamic languages today is that the hashtable is the superior default collection datatype. The standard library is state of the art in C, which is most of the time state of the art, full stop. The interfaces to the libraries are awful by way of being inconsistent. Performance is more than good enough. Scaling it properly is more of an artefact of good application architecture, but this is the case for any environment.