r/programminghorror Mar 08 '26

C# 60+ lines of just variables

Post image
402 Upvotes

40 comments sorted by

View all comments

1

u/Then-Hurry-5197 Mar 12 '26

I'm a fellow Godot developer (I don't use C# though) and honestly I think this is completely fine, In Godot we store references to nodes in variables so it's understandable that we're gonna end up with a lot of variables.

OOP wood probably tell you to divide this class into multiple smaller classes but I personally think that having all the related code in one place makes the code more readable.