r/ProgrammerHumor 2d ago

Meme pythonFeelsillegal

Post image
6.7k Upvotes

219 comments sorted by

View all comments

5

u/carloom_ 2d ago

I've never had the issue of when to use python vs c++. Basically you are tradiding developing time and speed for performance.

Creating a fast program in Python is much harder because you don't have control. C++ instead let's you be as close to the metal and even compute stuff at compile time.

A better meme would be contrasting C++ and Rust or Python and another language with the same use.

1

u/Unfair_Decision927 1d ago

Yeah normally you would use python (or something similar) for the main application, then any resource intense subroutine you write in C++ (or something similar) to eek out the performance.