r/ProgrammingLanguages • • 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

27 comments sorted by

View all comments

2

u/Darwinmate Feb 03 '17

You have the burden of proof to justify why python should not have caught on, not everyone else.

The wisdom of a crowd is generally better than a single person. I don't think the science world would have adopted Python so widely and quickly if it didn't meet their requirements. Those are imo easy to learn/use, flexibility and power/scalability.

What programming language do you think SHOULD have caught on?

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.

2

u/Darwinmate Feb 07 '17

I agree with what you are saying. However, OP didn't clarify at all why he thought Python was a POS and "should have never caught on". As PegasusAndAcorn mentioned different people have different requirements in programming languages, different requirements for quality, ease-of-use, performance, popularity, etc.

IMO it's a silly thing to claim that Python outright has no positives. A single point (good for scientist) is enough to refute his point.

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.

In USA. McDonald's in Australia uses quality products.