this post was submitted on 05 Jul 2025
362 points (98.7% liked)

Programmer Humor

24790 readers
1210 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
top 22 comments
sorted by: hot top controversial new old
[โ€“] Zorro@mander.xyz 8 points 21 hours ago (2 children)

Why not let the dog walk under the barrier ๐Ÿค”.

What if the dog walks through a wall because of that? Thats a risk that cannot be taken

[โ€“] whotookkarl@lemmy.world 11 points 20 hours ago

Special animation just for dog?

silent hill 2 dog ending

[โ€“] jaybone@lemmy.zip 24 points 1 day ago (5 children)

Why would dog extend human?

[โ€“] LiveLM@lemmy.zip 34 points 1 day ago (1 children)

Hmm, 4 limbs, 2 eyes, 2 ears, mammal...
Close enough???

[โ€“] jaybone@lemmy.zip 1 points 23 hours ago

See you just said mammal. Why not have them both extend from that? Then they define a property or a method which modifies how they jump over a fence.

[โ€“] WhiskyTangoFoxtrot@lemmy.world 16 points 22 hours ago (3 children)

They probably thought that all their NPCs would be human when they started the game, so they named their NPC class Human. Then they decided to add dogs, but needed them to do a lot of the same things the human NPCs did, so they made the Dog class a subclass of Human.

[โ€“] leftytighty@slrpnk.net 2 points 5 hours ago

Object oriented programming was a mistake

[โ€“] dandelion@lemmy.blahaj.zone 9 points 22 hours ago

it's probably so much worse

[โ€“] jaybone@lemmy.zip 6 points 22 hours ago

What is refactoring?

[โ€“] underscores@lemmy.zip 2 points 21 hours ago

ND answer is because the dev made the Human class before abstracting everything into the Entity class, dog should extend a game entity and not inherit the human animation behavior.

[โ€“] BehindTheBarrier@programming.dev 3 points 1 day ago* (last edited 1 day ago)

In modern games, I think it's fairly common to have a common 3d skeletons share names. So you can make animations like the one above apply to any character even if they have differences. It doesn't mean that dog extends human, but it may mean that a dog model shares a lot of common "bones", that are used for movement, with a human model.

So when a human animation is applied to the dog, you can see it warp to start position of the animation, move, and then then stop at the end position as a standing human, before warping back to idle animation (when it turns back into the dog shape)

Related, weapons in Destiny also share the same components across weapon types, and bugs have caused one weapon type to be used for another weapon, making funny things happen. Like how a hand canon (pistol) stretches like a bow because it's model got used in place of the bow model at the start of this clip:

https://www.youtube.com/watch?v=0YZa9vv5U0M

[โ€“] ulterno@programming.dev 1 points 23 hours ago

Yeah, seems weird.
Normally one would use multiple horses and some ropes for that. No idea how you would manage that with a single dog

[โ€“] 2fm@lemmy.world 28 points 1 day ago

Project Zomboid!

[โ€“] teft@lemmy.world 32 points 1 day ago (2 children)

Is that Dogmeat or the Thing?

[โ€“] whotookkarl@lemmy.world 4 points 20 hours ago (1 children)
[โ€“] teft@lemmy.world 12 points 20 hours ago

Same images:

[โ€“] Akagigahara@lemmy.world 16 points 1 day ago

Project Thingmeat, maybe?

Rather Lovecraftian, that.

[โ€“] Jakeroxs@sh.itjust.works 16 points 1 day ago

That looks crazy like Project Zomboid

[โ€“] MonkderVierte@lemmy.zip 2 points 1 day ago (1 children)
[โ€“] rollerbang@lemmy.world 3 points 1 day ago

So does the human.