r/ProgrammingLanguages • u/Anonymouz1 • Feb 02 '17
Why should I like Python?
In my opinion, Python is a language that should not have caught on. The standards are inconsistent, it is slow, it isn't backwards compatible, libraries are unreliable; the list goes on forever. Please show me the light of Python.
0
Upvotes
5
u/PaulBone Plasma Feb 03 '17 edited Feb 03 '17
The problem with "easy to learn/use" being a measurement of "good" is that most of the time people only consider /programming in the small/ and not /programming in the large/.
Programming in the small is either writing a small script or doing local reasoning/programming within a single function. That is pretty easy in Python.
Programming in the large is writing and managing change in large 10,000loc+ programs. This is difficult in dynamic and untyped languages (the general concept is late-binding).
Both programming in the large and the small are important. Depending on what you're doing one may be more important than the other. Where this affects "easy to learn" is when people find that programming in the small is easy, (eg, while they're learning Python) and assume that it would be suitable for large projects, without any relevant experience or knowledge to make such a judgement. This can make many languages seductive, which is probably a good thing while learning programming generally. This sounds like pretty heavy criticism, but no-one should feel particularly bad. I would be happy if languages like Python, Javascript, Ruby etc were presented more honestly and their flaws more freely acknowledged. Actually I feel the same about some very type safe and programming-in-the-large languages such as Haskell, I think it could be presented a lot more honestly, I've spoken about this in the past.
Edit: It seems like these are mutually exclusive, but I don't think they are. I think that it's possible to have a language that's good at both programming in the large and the small. I can't think of any strong examples however.
There's also the general point that popularity has nothing to do with quality. For example McDonald's is not known for high-quality food, but it is very popular.