5 ms·
The team that makes PHP makes quality a higher priority than just about any other language; if something is built into PHP, it's pretty likely to work correct
by terra_t 16y ago
The team that makes PHP makes quality a higher priority than just about any other language; if something is built into PHP, it's pretty likely to work correctly. (For example, PHP and Python have the exact same problems with threads, and the PHP team says "don't use PHP in a threaded environment" and the the Python people say "come jump in the water is fine")
It's true that everything gets shoveled into one big namespace, but PHP lets you get a lot done with very little bull. There's a lot of crappy PHP out there, but there's a lot of crappy Java, Python, Ruby and C# too. If you approach PHP with some discipline I think you'll find it's an environment that never kills you with a showstopper flaw.
- j_baker 16y agoSeriously? Don't get me wrong, I could imagine valid reasons to use PHP. But the quality of the language itself is at the very bottom of that list. I don't usually hear PHP advocates making that case. Usually it's a combination of "the language isn't that bad" and "there are a lot of libraries for PHP".
- jacquesm 16y agoIf you define quality as 'orthogonal naming of functions' and 'elegant constructs' then yes, PHP has its flaws. But it's been absolutely bullet proof in production for me and when I did find a bug I've had a patch within 24 hours straight from the core devs. They do take quality serious there, they just don't define it as language elegance.
- cheald 16y agoI'm not sure I understand what your argument is. That there aren't major showstopper bugs that make PHP unusable due to various segfaults? Sure, that's true. But do you mean to suggest that such things exist in greater quantity in other such languages? You say the PHP devs have a sharper focus on quality than other languages; can you provide and kind of evidence for those claims? Not just good response time by the PHP devs, but systemic failures in other languages that go unaddressed, as well? PHP tends to be at the bottom of the "language quality totem pole" because as a language it's pretty low quality. The PHP interpreter may be fine as a piece of software, but that's a completely separate matter from being a quality language.
- jacquesm 16y agoI've filed bug reports for other languages and have never so much as received a confirmation, let alone a patch, the php devs responded within a few hours, that shows to me they care. > PHP tends to be at the bottom of the "language quality totem pole" because as a language it's pretty low quality. The PHP interpreter may be fine as a piece of software, but that's a completely separate matter from being a quality language. It is specifically for that reason that I broke it down in to two parts, and apparently we agree on the language quality from a design point of view, but from a 'have to use this in production' point of view we do not. > You say the PHP devs have a sharper focus on quality than other languages; That's a straw-man, I said no such thing, but it does happen to be my experience that the PHP devs respond very quickly compared to other platforms / languages. > Can you provide and kind of evidence for those claims? And no, I'm not going to provide you with any 'evidence' for my claims, you can take my word for it. This is not a court of law, and besides that I never made any claims about other languages before this comment and I don't feel like putting other languages and/or their developers down. I know PHP as a language has its flaws and that there are some unfortunate choices made in the past that are very hard to undo but that's no reason for losing all objectivity.
- cheald 16y ago> I've filed bug reports for other languages and have never so much as received a confirmation, let alone a patch, the php devs responded within a few hours, that shows to me they care. It's great that the PHP devs do that! Is that a compelling reason to use the language? I'm not so sure. >That's a straw-man, I said no such thing; You said: > The team that makes PHP makes quality a higher priority than just about any other language Can you explain to me what I misinterpreted? > And no, I'm not going to provide you with any 'evidence' for my claims, you can take my word for it. This is not a court of law, and besides that I never made any claims about other languages before this comment and I don't feel like putting other languages and/or their developers down. It's a little silly to make a comparative statement like "The team that makes PHP makes quality a higher priority than just about any other language" and then refuse to provide examples of where this happens and matters. If you'd just said "The PHP devs respond quickly to bug reports", sure, but when you start saying "They do this better than other languages", you're implicitly already "put other languages and/or their developers down". In a case like that, I don't think it's out of line to ask for examples; if there are major failings in other languages that go ignored and unaddressed, then that's certainly worth some attention. If there aren't, the whole point is moot anyhow. If there are examples of systemic problems that go ignored in other languages, I'd like to know about them - that may matter when I choose a language for a project. I'm not interested in trashing PHP here; I use it on a daily basis, and get a lot done with it. I also use Ruby, Python, Javascript (both server and clientside), bash, and the occassional perl on a daily basis, and don't have problems with mysterious segfaults and unexplained crashes from 2-year-old bugs that would somehow make PHP's lack of such problems a major marketing bulletpoint. I don't understand your position at all, because as far as I can tell, it's "The PHP interpreter is mostly bug-free, and bugs get fixed quickly" (which is great!), but...what language with showstopper bugs survives mainstream use?
- deleted 16y ago[deleted]
- photon_off 16y ago"Quality" of a language, in your definition, doesn't seem to take into account community, support, ease of use, or pervasiveness. PHP is certainly not at the bottom of the list if you include those attributes, and if your goal is to learn a new language those things become very important.
- jawngee 16y agoTo be fair, most languages don't start out as a hacked up bunch of perl scripts like PHP did. They have the benefit of a design process, versus PHP's history of I need it to do X .. hack hack hack .. there it now does X. Remember, PHP started out as one dude's quest to have a dynamic webpage. It's not like Ruby or Python where someone sat down and tried to think things all the way through. So yeah, I don't think any sane PHP advocate is going to get in your face about PHP as a superior language. Because it's obviously not true and it really doesn't matter all that much.
- viraptor 16y ago> and the the Python people say "come jump in the water is fine") Doesn't this come simply from other execution environment? PHP is used for websites and you're very unlikely to need/want threading there. I've never heard django/rails/whatever people complaining about threading (apart from the actual HTTP server people). On the other hand, Python got popular in research / number crunching (numpy, scipy, etc.) / networking (twisted, tornado, diesel, etc.) -- and the multithreading requests seem to come mostly from that camp.
- adriand 16y agoThis particular conversation follows the PHP conversation template uncannily well: http://www.reddit.com/r/web_design/comments/bxfok/9_useful_php_functions_and_features_you_need_to/c0p1s6r http://www.reddit.com/r/web_design/comments/bxfok/9_useful_p...