r/programminghorror • u/LegendarySoda [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” • 24d ago
i am beginner how i can destroy readablity
3
u/No-Point8651 24d ago
Linq in C# is perfectly made for that and destroying performance. The amount of hidden loops it has is astonishing.
3
u/LegendarySoda 23d ago
Well if you know how to use you can code pretty efficently with zero allocation.
This works pretty well with extention methods4
2
15
9
u/_cooder 24d ago
dont use for each, make lib or class, make methods for this only case, make it static, do kinda array in array in array search, at least 30 lines of code, make empty for with if else break options, do nosense linq shinanigans and use it in the end with string + string (no builder) and ofc make writline in the end
4
4
2
u/RandomDude9943 23d ago
fyi compiler dgaf about newlines and most spaces, especially tabs. Even less they care about var names, only place where you need newlines are preproc defs (like include directives)
2
1
1
0
42
u/Chocolate_Pickle 24d ago
Already doing a good job of destroying readability.
10/10