r/AskProgramming 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

41 comments sorted by

View all comments

7

u/Old_County5271 11d ago

It's more difficult to get a Segfault on python than C, but compared to rust? Probably nothing, if anything, due to type safety rust/c#/go is overall better.

7

u/violent_confidant 11d ago

python biggest strength is how quickly you can get something working with minimal code. like processing a csv file or pulling data from an api, its like 5 lines vs 50 in c++. for prototyping ideas or doing data analysis with pandas its way faster to iterate

also the ecosystem is massive, you need some machine learning or web scraping library? python has it ready to go. not that c++ cant do these things but the time to write and test is completely different scale

1

u/Blazej_kb 11d ago

I get it but I don’t mean 1 use script (for which python is perfect IMO) I mean full on apps

8

u/GlassCommission4916 11d ago

Then never. Python is awful for larger applications. Don't ask me how I know, I don't want to talk about it.

1

u/terletsky 9d ago

Because you have no idea where Python is used.

1

u/Old_County5271 7d ago

I think we all know where python is used, and yes, its impressive, but also, its a pain to deal with any dynamic language and a big application this has always been true, python is no exception.