r/programminghorror • u/LegendarySoda [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" • Oct 01 '26
i am beginner how i can destroy readablity
99
Upvotes
r/programminghorror • u/LegendarySoda [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" • Oct 01 '26
43
u/Chocolate_Pickle Oct 01 '26
Already doing a good job of destroying readability.
10/10
3
u/No-Point8651 Oct 01 '26
Linq in C# is perfectly made for that and destroying performance. The amount of hidden loops it has is astonishing.
18
u/gsweats Oct 01 '26
Lol. Why the final line with the substring? What about a delimiter between multiple emails?
16
u/Last8Exile Oct 01 '26 •
Are you destroying readability or performance?
9
u/_cooder Oct 01 '26
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
u/Xp365 Oct 02 '26
Range based for loop in my unreadable code 💔
4
u/Music_Quartermaster Oct 03 '26
Last line is just 🤌
2
u/RandomDude9943 Oct 02 '26
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
u/Fidodo Oct 02 '26
The best way is by having ai generate you ten thousand lines of spaghetti code that nobody will ever read that is 10x longer than it needs to be.
2
u/born_zynner Oct 06 '26
Converting a nullable string to a string using a for loop is aura as fuck
1
u/Fit_Letterhead6818 Oct 05 '26
Change all variables to arbitrary letters
0
u/awesumioutr2 Oct 05 '26
Keep using that ugly ass language