this post was submitted on 10 Jul 2025
873 points (99.8% liked)

Programmer Humor

24932 readers
1158 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
you are viewing a single comment's thread
view the rest of the comments
[โ€“] dejected_warp_core@piefed.world 32 points 1 day ago (8 children)

Speaking of coding out of spite, is nobody going to mention that his C code features a struct with over 20 fields in it?

[โ€“] calcopiritus@lemmy.world 35 points 1 day ago

Sometimes you can't not have a god class (struct in this case). When doing UI specifically, I always end up with one.

You can try using encapsulation to reduce the amount of fields technically, but in the end it's the same amount of information in a single god class.

load more comments (7 replies)