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

79 Upvotes

195 comments sorted by

View all comments

35

u/NopileosX2 12d ago

All programming languages which are used are bad and all others are irrelevant. C++ is an overly bloated mess and python has no idea what it even wants to be these days.

Software development is impossible.

11

u/theGaido 11d ago

C++ is more like Magic the Gathering. There is a big legacy of content. Official - full rulebook has hundreds of pages, and it can be overwhelming. But in reality, for comforting play, you need just to know basics and current meta. Other things you will learn with time.

5

u/Ambientmultimedia 10d ago

That's actually a perfect analogy.

1

u/Objective_Suit_4471 11d ago

They have a rule book? Can you inform me of it?

5

u/Affiixed 10d ago

The documentation

1

u/CreativeAlbatross319 8d ago

The rule book is to turn on the static analyzers like clang-tidy or cppcheck.

6

u/vegan_antitheist 12d ago

this is probably the best answer here.

1

u/GreenFox1505 9d ago

I dont disagree with the statement, but is that the best answer for this question to a child aspiring to be a programmer? First day out in the wild and you're here slapping them in the face with cynic nihilism?

1

u/NopileosX2 9d ago

This thread had more than enough serious statements and it is always important to teach the basics. Which are that Programming Sucks and There are only two kinds of languages.

1

u/GreenFox1505 9d ago

This was the top comment though. 

1

u/Illustrious-Fail1951 8d ago

To op most software devs are not actually this guy at all

1

u/VanCliefMedia 7d ago

This is the only answer

1

u/pandorazboxx 11d ago

ah, have you met my friend Rust?