you are viewing a single comment's thread
view the rest of the comments
[–] 36 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.

  • source
  • parent