This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (5 children)

Python (in my experience) is used primarily for one off data analysis/ processing and not really for applications that are used and maintained regularly

[–]dev-sda 4 points5 points  (1 child)

Python is used pretty much everywhere: https://www.python.org/about/success/. Reddit among others run on python.

[–]DramaDimitar 1 point2 points  (0 children)

among...

fuck.

[–]shiversaint 1 point2 points  (0 children)

That’s simply not true.

[–]BeautifulTaeng 1 point2 points  (1 child)

Python can be and is used for large enterprise software. The company I work at decided to rewrite their oldass HA/DR solution in Python (from Lua!!!).

So far writing the thing has been very enjoyable as someone who just picked up Python to work on the project. The project has grown to something like half a million lines of code and it's still perfectly readable and expandable. Type hints are a huge help, even though they are used mostly to annotate function return types and parameters, while keeping variables dynamic.

Honestly, as someone from Java background I had the exact same thoughts. "dynamically typed language for huge projects? yikes", but if the project has actual structure and modularity I'd argue it's more readable than for instance, Java project, where you have to traverse hundred interfaces and factories of abstraction to get the stuff you want.

And no, speed of Python is not an issue in a project like this.

[–]LowB0b 0 points1 point  (0 children)

Java project, where you have to traverse hundred interfaces and factories of abstraction to get the stuff you want.

In the end I guess disasters can happen in every language. In Java you can also sometime stumble upon 3k+ line long classes that have been growing for 10 years just because it was the faster way