4 ms·
- Sane, easy to use package/dependency manager that just works, every time (none of node/python/golang really have that, for entirely different reasons). - Lar
by kilburn 9y ago
- Sane, easy to use package/dependency manager that just works, every time (none of node/python/golang really have that, for entirely different reasons).
- Large stdlib that, while inconsistent, frees you from searching packages for everything (vs nodejs).
- I'm sure some will disagree, but php's documentation is top notch, easy to navigate, and with nice completion from user examples (you could say it is a mini-stackoverflow by itself). Golang's docs are good, python's are good but hard to navigate, node's are typically worse.
- PHP's ordered, possibly hash-backed possibly plain arrays are an abomination from a data structures point of view, but god are they handy! Golang is terrible here with its static types (fine) but lack of generics (just check how to sort a list of a non-primitive type).
- dullgiulio 9y agoSorting a list of a non primitive type in Go can be done inline. To this day there is no generic list sorting function in PHP proper.
- andybak 9y ago1. I rarely have problems with package management in Python. I know pip has flaws but it's not enough of a pain point for me to see it as an issue. 2. I'd say Python is an easy match in this regard 3. Agreed about the docs - I still find the organisation of Python's docs a bit peculiar. 4. Handy data structures, you say? I think Python might have the edge here. It's strange you don't mention PHP's biggest strengths: deployment and learning curve: You can begin on almost any commodity hosting with a simple text editor and no knowledge of Unix internals. The amount of extra stuff I had to learn to be productive in Python was huge at the time. It's got a bit better now with various simple deployment options but PHP still wins out for the beginner.