942
you are viewing a single comment's thread
view the rest of the comments
[-] calcopiritus@lemmy.world 37 points 1 year 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.

this post was submitted on 10 Jul 2025
942 points (100.0% liked)

Programmer Humor

32883 readers
450 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