652
functions (lemmy.nz)

cross-posted from: https://lemmy.ml/post/39334581

you are viewing a single comment's thread
view the rest of the comments
[-] Ghoelian@piefed.social 9 points 10 months ago

The reason is very simple, performance. If a value doesn't need to be changed, don't declare it as mutable. This isn't just a front-end thing btw.

this post was submitted on 22 Nov 2025
652 points (98.7% liked)

Programmer Humor

33583 readers
2021 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 3 years ago
MODERATORS