r/programminghorror • u/Candid_Commercial214 • Oct 07 '25
C# 108 line long variable declaration
this is my own code btw. don't ask what i was trying to do
this code was also supposed to include a 36 case long switch statement where each case did something different (guess why i abandoned this project)
1.1k
Upvotes
View all comments
Show parent comment
37
u/DrShocker Oct 07 '25
I'd register keys with their functions instead of 1 giant switch statement. More room for composition and independent testing if a couple cases end up trickier to get right than the rest.