• calcopiritus@lemmy.world
    link
    fedilink
    arrow-up
    37
    ·
    24 hours 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.