this post was submitted on 25 Aug 2023
688 points (87.2% liked)

Programmer Humor

31251 readers
1545 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 10 months ago (2 children)

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.

[–] [email protected] 3 points 10 months ago (2 children)

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.

[–] [email protected] 2 points 10 months ago (1 children)

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.

[–] [email protected] 2 points 10 months ago

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++.