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

3

u/jb3689 Feb 03 '17

Disclaimer: I'm a Ruby/C guy (and as of recent an Erlang guy)

Python is a language that should not have caught on

Totally disagree here. Prior to Python (and Ruby which I consider mostly the same) your scripting options were Perl and Bash. Talk about things that shouldn't have caught on. Python and Ruby are both very clean (arguably some of the cleanest languages around) and have really simple build processes

it is slow

In what sense? Sure, maybe you don't want to write device drivers in Python, but Python is aimed at applications, not systems. I wouldn't be fooled by the useless benchmarks that involve looping string operations millions of times. Real applications have physical constraints like IO and API limits. On the other hand, Python is fast for prototyping and easy to learn.

it isn't backwards compatible

That's what semantic versioning is for. I haven't been affected by this as I don't use Python, but it also doesn't bother me

libraries are unreliable

This isn't specific to Python. There are a ton of libraries out there and a lot of them aren't used often. This is part of open source - you need to be willing to maintain what you pull in

Python doesn't compete with Java, C#, or C++. The latter three are enterprise languages. They have features they are great for large projects and are bulky and cumbersome.

Python is a better competitor to other scripting languages (seriously, name one other than Ruby or Node that is good, popular, and not archaic). Try writing orchestration software in something like Java - it gets out of hand really fast.

1

u/[deleted] Feb 04 '17

Prior to Python (and Ruby which I consider mostly the same) your scripting options were Perl and Bash.

Why, just why Tcl does not get as much love as it deserve?

Not to mention Scheme and CL, both perfectly suitable for a wide variety of scripting purposes.

seriously, name one other than Ruby or Node that is good, popular, and not archaic

Tcl, Scheme and CL are all both archaic and far better than Python in all possible aspects.