r/Python • • Nov 13 '20

News Python swallows Java to become second-most popular programming language

https://www.theregister.com/2020/11/12/python_swallows_java_to_become/
2.3k Upvotes

205 comments sorted by

View all comments

Show parent comments

17

u/mooburger resembles an abstract syntax tree Nov 13 '20

define "durability"? One of the aims of the Python style guide (PEP8) is enforcing readability and maintainability.

7

u/Fledgeling Nov 13 '20

Well, some of the most annoying parts of Java that make me hate the language exist to force large teams of users to use design patterns that are enforced by the language for usability.

Half the developers I talk to don't even know what pep8 is and think global variables are fine. Granted, that's fine for the work I'm doing lately.

1

u/mooburger resembles an abstract syntax tree Nov 13 '20

I have never worked on an "enterprise" Java app where there was not already an overriding style guide that the code/PR reviewers enforce to begin with, so I think documentation, the test framework and maybe some other pipeline tools (like if you want to do some type sanity checking with mypy) will get folks most of the way there. To be Pythonic is to EAFP, and the language is specifically built around that pattern; Guido's whole idea is "we're all adults here".

2

u/Fledgeling Nov 14 '20

Yup.

And the idea that we are all adults is something I have had success with in practice.... While avoiding anything too corporate feeling.

1

u/mooburger resembles an abstract syntax tree Nov 14 '20

Yeah my experience with corporate Java is that it is definitely and enabler of cargo cult programmers instead of investing in actual software engineers.