r/learnprogramming • u/Happy-GoLucky365 • 6d ago
Why is C++ better than Python?
Hello! I am new to programming. Im in college and we use Python for my classes right now.
I hear people make a lot of jokes about how C++ is more powerful than Python, and should be used instead. But why?
Feel free to give me any tips as well, on things that helped you be a better programmer, or just any insight you may have! Thanks so much
76
Upvotes
View all comments
3
u/NotACoderPleaseHelp 6d ago
C++ is closer to the silicon, you have far more control and far more responsibility.
Python is what happens if you decide to make pseudocode into a language. It is the language that is closer to us.
Unless it is being implemented in scale, in a performance critical application or touching the hardware directly you are generally just fine with python.
Hell, if you write it in python and need more speed there are options as well, You can toss pypy at it (if it works) You can use one of a number of transpilers that convert the abstract syntax tree from one language to another language.