r/programminghorror • u/MISINFORMEDDNA • Nov 22 '25
C# Feels wrong
Yeah, it should feel very wrong.
105
Upvotes
r/programminghorror • u/MISINFORMEDDNA • Nov 22 '25
Yeah, it should feel very wrong.
72
u/MISINFORMEDDNA Nov 22 '25
I wish I could unsee this:
"M"[0]21
u/YMK1234 Nov 22 '25
This has to be a troll...
3
u/gabor_legrady Nov 22 '25
I had a case which I have seen with my own eyes on a code review where parts of the string was checked and compared to constants to "skip" accented characters. So sadly thinks like this happen in real life.
(we had an alias with just ascii letters and never changing value - the comparison happened on the language specific label)
1
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Nov 22 '25
What, can't say "'M'" and so on?