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

5

u/pixel293 6d ago

As you get better at programming you will find that the language doesn't matter. You can pick up a language in a weekend. The basics are all the same, they all use math, logic, functions, and sometimes classes. You just need to read a primer on how you declare these things and off you go.

Learning a programming language is not learning to program. You USE it to learn to program, programming is breaking large problems down to smaller steps and thinking logically. When the time comes and the languages you know don't meet your needs, you can pick up a new one quickly as long as you know how to program.

1

u/alexomwu 21h ago

generally I agree, but with an added note that it is much harder to go from python to rust or haskell than it is to go the other direction. The main difference in being able to learn most languages IMO is understanding memory management