this post was submitted on 11 Feb 2025
946 points (96.5% liked)

Programmer Humor

25425 readers
976 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
(page 2) 50 comments
sorted by: hot top controversial new old
[–] Gigamegs@lemmy.zip 6 points 5 months ago (1 children)

What about stacks grows to higher addresses?

[–] SamboT@lemmy.world 1 points 5 months ago (1 children)

Im unfamiliar with this as well. If you are allocating memory for a stack, why does it matter which direction it populates data? Is this just a convention?

[–] Gigamegs@lemmy.zip 2 points 5 months ago* (last edited 5 months ago) (1 children)

I asked deepseek: Downward-growing stacks** are more common in many architectures (e.g., x86, ARM). This convention originated from early computer architectures and has been carried forward for consistency.

Funny, I can't remember, because I did a lot of assembler.

[–] SamboT@lemmy.world 2 points 5 months ago

Ah thank you so its just a convention.

[–] JackbyDev@programming.dev 6 points 5 months ago (13 children)

Arrays not starting at 1 bother me. I think the entrenched 0-based index is more important than any major push to use 1 instead, but if I could go back in time and change it I would.

[–] chuckleslord@lemmy.world 3 points 5 months ago

Also remove null reference

[–] Pika@sh.itjust.works 1 points 5 months ago (1 children)

this is what messed me up with ZSH for a bit, having a shell default to 1 instead of 0 was weird

[–] JackbyDev@programming.dev 1 points 5 months ago

Rare zshell L

load more comments (11 replies)
[–] lime@feddit.nu 4 points 5 months ago

didn't know donny was a forth programmer

[–] kamen@lemmy.world 4 points 5 months ago (2 children)

Implying the orange fella has any say in programming language design and general tech conventions

load more comments (2 replies)
load more comments
view more: ‹ prev next ›