this post was submitted on 31 Aug 2025
314 points (96.4% liked)

Programmer Humor

26095 readers
1424 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
 

Finally I have a valid reason to learn about memory management. It was also hella weird when encountering it.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] ulterno@programming.dev 15 points 1 day ago (1 children)

Back when I was a kid and was learning C, I used to wonder why people considered pointers hard.
My usage of pointers was like:

void func (int * arg1)
{
    // do sth with arg1
}
int main ()
{
    int x;
    func (&x);
    return 0;
}

I didn't know stuff like malloc and never felt the need in any of the program logic for the little thingies I made.
Pointers are not hard. Memory management makes it hard.

[โ€“] chunes@lemmy.world 2 points 17 hours ago

C makes them unnecessarily confusing in my opinion. In Forth they're as simple as can be compared to C.