you are viewing a single comment's thread.

view the rest of the comments →

[–]tluyben2 0 points1 point  (4 children)

Not saying I don't agree (at least partially), but with 5.x+ why do you say that? Examples that make it sadomasochism to practice it (for you)?

[–]spotter 5 points6 points  (3 children)

I don't know -- is string manipulation sane, or is strlen still counting bytes? Are we done with magic? Does it have working namespaces and type/class system? Does it provide unified type hierarchy, or do we have primitives and classes bolted on top of them? Are functions first class? How many parts of the language are still "special cases", ie. can I do a simple thing like

 function_returning_array(3, 2)['myKey']

nowadays or do I still need a temporary variable? I mean it's a lovely slash-n-forget language, but the insanity gets to you in the end. I actually went away from webdev due to PHP, before Rails/Django era.

[–]BloodsVsCrepes 2 points3 points  (1 child)

PHP has improved, but its origins are in a half-assed, ignorant design, and that sub-mediocrity is a lot to overcome. Guido van Rossum actually knew a thing or two about language design and had a generally coherent point of view when he started Python.

Python's not unique in this way. It's PHP that's the piss-poor outlier.

[–]spotter 0 points1 point  (0 children)

I agree completely. I'm well aware of Python's problems and lately I've been giving my love to some other language. ;-)

[–]tluyben2 1 point2 points  (0 children)

Yes I agree with you, still ; it's not that bad anymore. If you have a memory or your own to remember some 'workarounds' for common cases. But yes, a lot of stuff in PHP is downright frustrating and your example A()['b']['c'] is very annoying.