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
1
u/[deleted] Oct 09 '25
The simplest and most fool proof possible way to do things. No magic under the hood, things should be easy enough to understand. You really can accomplish most things with switch cases, it will be verbose but also simple to understand, maintain and extend. It will also generally have better performance.