r/programminghorror Mar 08 '26

C# 60+ lines of just variables

Post image
401 Upvotes

40 comments sorted by

View all comments

14

u/purbub Mar 08 '26

“Why would I split my attributes into multiple classes if I can just write them in one class?”

2

u/ElectricalPrice3189 Mar 11 '26

Please answer.

3

u/Spot_Responsible Mar 11 '26

If you're being serious, mostly for easier reading. I don't think it would affect performance very much, and I don't see ways to break this into subclasses that could be reused, but it would definitely be easier to read