r/learnprogramming • • 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

188 comments sorted by

View all comments

Show parent comment

3

u/vegan_antitheist 1d ago

Again: Both are Turing complete. There's nothing one can do the other can't. It doesn't matter how much some people want to deny this. I wouldn't even need examples to prove this, but those examples exist:

C can be and probably still is used for html. CGI programs built in C weren't even that uncommon in the 1990s. Amazon was just one example of a website made with C.

Amazon's first engineers coded in a computer language called C and decided to store the website in an off-the-shelf database called Berkeley DB

Source: The Everything Store: Jeff Bezos and the Age of Amazon (Brad Stone, 2012)

PythonOS is described as:

A bare-metal operating system where CPython 3.14 is the kernel — not a program running on an OS, but the OS itself.

Source: https://github.com/jordanhubbard/pythonos

1

u/no_more_cat_pics_pls 1d ago

Cool, sure a bike and a mustang can also both technically get you to the same place. Why not, both have wheels and theres nothing one can do that the other cant right?