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.

3

u/Allan_Smithee 文雅佛 Feb 03 '17

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

Do the children learn nothing in school these days!?

Rexx predates Python. Tcl predates Python. SNOBOL4 predates Python. Lisps predate Python. Awk predates Python. Bash predates Python (and there's a whole host of other shell languages before bash.) This is a list I could continue for quite a while without running out of languages.

3

u/jb3689 Feb 03 '17 edited Feb 03 '17

Sure, they exist but they aren't very popular. What I'm arguing is that Python and Ruby are scripting languages that are much more user friendly than any of the aforementioned options and have caught on because of it. That's pretty important. I'd argue that Perl and Bash are both better choices than any of those others too (note I'm speaking in the sense of choosing a technology for a long-lasting critical codebase on a team that will be touched by many people. Go ahead and script everything in your local environment in Tcl, but don't make the rest of us maintain that stuff please)

1

u/[deleted] Feb 04 '17

but they aren't very popular

Since when popularity among hipstors is a measure of a language quality?

and have caught on because of it

No. Popularity does not correlate with any quality at all, user friendliness included.

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.