this post was submitted on 25 Aug 2023
736 points (87.3% liked)
Programmer Humor
32483 readers
573 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
So you're wasting hours of development time to save a couple of milliseconds of run time.
If that's your only criteria for choosing a language, you're gonna have a bad time.
To be fair, sometimes that runtime difference matters. That’s why it’s C++ and python is a fairly common skill-combo amongst devs. But the fact that this dude is basically bragging about writing shell scripts as if that’s something an experienced dev couldn’t figure out tells me that they don’t really know anything about when you would choose either.
If they had mentioned the Global Interpreter Lock or dynamic typing maybe they would have had some sort of real case for why you should avoid python in certain situations.
Totally agreed the run time difference matters sometimes. In my experience it's hasn't been the case for scripts, as they are generally small in scope in comparison to C++ applications.
Agree 100%. At work I write my code that needs to be performant in C++ and scripts in python. I wouldn’t even dream of writing a script in C++.