this post was submitted on 17 Aug 2024
613 points (93.2% liked)

Programmer Humor

32032 readers
1137 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 54 points 1 month ago (2 children)

"I'm writing a recursive method with threads to optimize the CPU usage in a 0.02%" THIS IS A NONSENSICAL STATEMENT MADE BY DERANGED PEOPLE

I mean this is correct though

[–] [email protected] 13 points 1 month ago (2 children)

Recursion makes it cheaper to run in the dev's mind, but more expensive to run on the computer. Subroutines are always slower than a simple jump.

[–] [email protected] 6 points 1 month ago

Recursion makes it cheaper to run in the dev's mind, but more expensive to run on the computer.

Maybe for a Haskell programmer, divide-and-conquer algorithms, or walking trees. But for everything else, I'm skeptical of it being easier to understand than a stack data structure and a loop.

[–] [email protected] 3 points 1 month ago

Dynamic programming: Heyyy...

[–] [email protected] 7 points 1 month ago

Yeah, you have to be pretty deranged to mix multithreading and recursion together.