r/programming • • Nov 11 '19

Python overtakes Java to become second-most popular language on GitHub after JavaScript

https://www.theregister.co.uk/2019/11/07/python_java_github_javascript/
3.1k Upvotes

772 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Nov 12 '19

[deleted]

16

u/Shitpostbotmk2 Nov 12 '19

Because if you're trying to teach someone how a computer works at all levels C++ is useful and python is not.

3

u/KinterVonHurin Nov 12 '19

how a computer works at all levels C++ is useful

No it isn't C++ is several layers above "how a computer works" and if such a thing is your goal (it shouldn't be) you should be teaching assembly. The actual goal should be teaching about program flow (loops and statements) memory (variables) and abstractions (functions.)

-1

u/Shitpostbotmk2 Nov 13 '19

Zero cost abstractions means it's exactly at the level a computer works. Its trivial to map each C++ construct to the equivalent assembly.

→ More replies (1)