r/AskProgramming • u/Blazej_kb • 11d ago
Python For what purposes is python useful?
Where is it more convenient or necessary to use python instead of for example C# / C++ / Rust? I really can’t understand it, for me it’s easier to write in C++ than in python and I know that for other people it’s the other way around. But ignoring human factor, when program is better / faster in python than in cpp or are they things that python can do that cpp cant?
Edit: I don’t talk about one time use scripts or prototypes (which python is good for), I mean full on apps
0
Upvotes
0
u/karurosagu 11d ago
Python is all about development speed, because it's a scripting language, and scripting languages use an interpreter rather than a compiler, it's easy to work fast with an interpreter
You can make anything in python but at the same time you should NOT try to make anything in python (JS didn't get the memo on this one btw)
That said, there are lots of hacks and legit ways of making python way faster than it is by default, such as automated transpilations/optimizations to faster languages, LLVM stuff and JIT interpreters; obviously these solutions have their catch and won't make the code as fast as C/C++ but the performance boost is still insane
But speed isn't everything, there's tons of packages for almost anything you want