624
Stop (lemmy.zip)
you are viewing a single comment's thread
view the rest of the comments
[-] stingpie@lemmy.world 16 points 4 months ago

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.

[-] pivot_root@lemmy.world 7 points 4 months 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.

[-] xavier666@lemm.ee 4 points 4 months ago

Dynamic programming: Heyyy...

this post was submitted on 17 Aug 2024
624 points (93.5% liked)

Programmer Humor

32745 readers
309 users here now

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

Rules:

founded 5 years ago
MODERATORS