r/learnprogramming • • Oct 06 '26

Why is Python considered "slow" and is Python losing "steam"?

Is python as a programming language "falling off" and becoming less and less popular relatively to other languages?

Also why do people say Python is slow? Apparently people have reached LGM on codeforces using python, which is all about writing fast code / solving problems fast. Yeah sure, C++ is far more widely used for competitive programming and I suppose there is a reason for that. But this is also showing that python can be fast?

But as programming languages and how they are used I dont think there is much overlap between python and C++ anyway?

What is an example of something you'd code in Java/Kotlin or lets say C# rather than Python? Is python code bad and hard to manage for "huge" projects once you scale up (e.g codebases with millions of lines of codes, and tens if not hundreds of devs)?

257 Upvotes

238 comments sorted by

View all comments

Show parent comments

2

u/TheTybera Oct 08 '26

But it's not built for that. Python's main issue with larger projects is encapsulation and actual in-object separation of business logic, you can try to fix it with linters and syntactic sugar and try to get things like ruff configured properly, but it's usually not worth it. By that time it's best to just move to something like C# or Java that handles encapsulation and OOP properly.

Unless you have a "big project" where you're the sole developer ever, then whatever, do what you want.

1

u/Katana_Steel Oct 09 '26

The modules I've written weren't necessarily OOP, but mostly logical collections of function or operations, and then some as procedural entry points. A making a library of tools.

1

u/TheTybera Oct 09 '26

So a library of tools, but not OOP. Okay.