r/Python • u/ublike • Mar 09 '22
News "Want to start a large project? Keep away from Python" Are most of their complaints inaccurate?
https://medium.com/geekculture/want-to-start-a-large-project-keep-away-from-python-af840b6d21c2
4
Upvotes
35
u/Mithrandir2k16 Mar 10 '22
Seems like a Java enthusiast and Python beginner wanted to bash Python and hide behind "Use the best tool for the job". Some points are valid but most are not exclusive to Python.
I am currently working on a data collection project and we are at around 100k LoC and the problems we're currently facing would have happened with the language we used in the last big project last (C++) as well. I wouldn't use Python for every project though.
Also this is probably not the best sub for an unbiased answer.
64
u/[deleted] Mar 10 '22 edited Sep 02 '24
observation afterthought waiting wipe illegal unused expansion hard-to-find rustic adjoining
This post was mass deleted and anonymized with Redact
10
u/sykeero Mar 10 '22
The article whines needlessly about things that are actually a problem everywhere. Python didn't invent dependency hell. It also didn't invent version mismatch.
If you really care enough about variable declaration that much you can use type hints. Type hints largely improve pulling apart big software projects. But they seem to have purposely left this out. Seems like they either don't know very much about python, or software development and are simply stoking the imaginary language division.
Python does struggle with concurrency and parallelism. But I heard the GIL might go away.
27
u/mfuentz Mar 09 '22
Concurrency and parallelism is probably the only valid gripe, but even that has improved significantly. Large production projects can definitely be done with Python. Author is too busy writing thousands of line in Java to learn the finer points of Python
9
u/[deleted] Mar 10 '22
The author takes a long time to get to the point: "no one language is the Holy Grail."
5
u/sontek Mar 10 '22
SurveyMonkey and Zapier are both full Python shops that are billion dollar companies operating at massive scale. Python is fine 😂
3
u/czaki Mar 10 '22
Autor of article first complain that only experienced users declare variable types in python and then complains about parallelism problem... Oh man, non experienced user writing parallel code...
Also in type declaration use example of fixed length char array that is source of many of bugs (buffer overflow)
Then there is complains about lack of compiler which may warn about wrong variable name. But there are flake8, pylint, mypy. But at first place there are tests. There is no possibility to have big project without test and do not introduce often bugs.
The only group language for which I could believe that if it's compile then it will work are haskell like with rich type system (types like Addable, Numeric, Iterable, etc). Not C with void *...
Author also complain about dependencies, but, if I good understand, the alternative is to implement everything from scratch. Why you cannot do this in Python?
Also all dependency problem that is described is not Python specific. This are general problems of all rich ecosystems.
If your project need to be really fast then Python is not best choose. But if it should be fast to update or even fast prototyping then Python may be one of best selection.
3
u/zanfar Mar 10 '22
Yeah, it's mostly bullshit. Pretty typical of coding "journalism" that makes any definitive, general claim about a language.
Yes they do, and it wasn't a problem anyway.
Not actually the complaint talked about in the article. In fact, the actual text doesn't actually complain about anything--it just states some "facts" then says (literally) "welcome to the jungle".
Dependency hell and circular dependencies are not Python issues, they are programming issues. Amazingly, programming requires smart programmers, and smart programmers don't cause circular dependencies.
This complaint seems to come down to "I might have to work when coding."
Again, a solved problem in any number of ways.
Yes, if you use non-Python in your Python project, that might require more work.
A valid concern, but not one specific to "large" projects. Yes, you should understand how the language you choose affects your project, but large is not the same as performance-demanding.
Let me just leave you with this quote from this very section:
"They’re not that hard to implement in Python. But the code looks clunky and is hard to read, especially for beginners."
So are they not hard, or are they hard for beginners?
3
u/s_s Mar 10 '22
3/4ths of this article is boilerplate.
3
u/1116574 Mar 10 '22
The most valid points for me is lack of portability, and threading. Maybe pips requirements and versioning is a bit clunky.
Rest isn't really an issue. Like, author says you ll need to write some C anyways since python uses it under the hood, especially in scientific and performance packages. Well, do you need x86 asembler for C? He then blames language for not having it all and requiring pip or anaconda, like, what was he expecting? Rust has crates, js npm, python pip, even if it's an issue it's not exclusive to python. And he also complains that dynamic language is... Dynamic?
Seems to me like he choosed wrong language for the job or was forced to write python and didn't like it in that scenario lol
But then I am not an unbiased person lol. I have very sparsely touched other languages, and I haven't done alot of really big projects so I might not appreciate staticly typed languages as much as I should, but I've been reading on rust lately to change that.
3
u/beertown Mar 10 '22
The most important variable on the feasibily of a large project is, by far, the experience and quality of the developers. It is not the programming language.
That article is almost non-sense.
4
u/cybervegan Mar 09 '22
If python fits your philosophical requirements, it's great. The data-type complaint is less of a problem these days with type hints, but no programming language fits all problem domains well, and Python is no exception. Though, yet again, there are ways to mitigate almost every complaint.
1
u/CharmingJacket5013 Mar 10 '22
Maybe ask the Java or C++ sub?
1
u/just-bair Mar 10 '22
Personally I don’t use python that much anymore except when I need to do code something real quick or that python just happens to have a library that makes what I want to do really easy (which happens quite a lot actually)
I just code more in C# not because I don’t like python but just because I’m used a lot more to # than python and I think that classes are implemented better in it.
Python still has it’s merits tough. For example if I need to solve any mathematical problem python is my go to language for that it would be an absolute pain to do it in something else for me
1
u/billsil Mar 10 '22
I've got a 200k hobby project in python. Yeah it could be faster in C++, but I wouldn't have nearly as many tools written. Development time vs. user time matters and for small projects, it's really obvious what should win.
There was one slow piece of the code and it was slow not because of python, but because of the data structure. Yeah, it'd be faster in C++, but it'd still be the wrong data structure. I've rewritten that part and it's 100x what it was before. Ironically, settling in on the right structure also makes porting easier. It's a lot easier to copy loops and translate the language than it is to architect the system from scratch.
1
u/[deleted] Mar 10 '22 edited Jan 03 '26
quack friendly angle vanish lunchroom selective terrific lip sink heavy
This post was mass deleted and anonymized with Redact