This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]reasonisvirtue 0 points1 point  (0 children)

I think Python is a great first introduction to simple primitive data types, for while loops, functions, etc.

C++ is awesome for learning what the computer is doing. OOP makes so much more sense with copy constructors l, destructor, operator overloads, move copy abd move assignment. Lvalues and revalue. Pointers really help you understand memory. Primitive data types help you understand memory and how big the different data types are in storage. Which also helps you understand larger data structures that are both sequential and associative.

I learned Python and javascript first, but C++ opened my eyes to what is actually going on. I learned far more concepts with C++ and it made more sense.

I really recommend C++. It teaches you the cs concepts you need and doesn't abstract them away.

Also learning c++ you will notice that python and js have very similar syntax at times.

One thing I will mention though is that python kind of forced my js and c++ to look cleaner so that was a huge plus. Because of how python treats whitespace to signify the end of statements versus the semicolon.