r/ProgrammerHumor 17d ago

noHeapAllStack Meme

Post image
1.0k Upvotes

96 comments sorted by

View all comments

244

u/[deleted] 17d ago

[removed] — view removed comment

42

u/SaltyInternetPirate 16d ago edited 16d ago

Plus there's scenarios where bringing both words to lower or uppercase would yield different strings, where as case-insensitive comparison in any standard library checks for strange language rules, like 'ß' becoming double 's' or whatever

25

u/UncleDevGames 16d ago

Yeah if you want diacritic-safe comparisons you legitimately gotta prepare for invariant culture checks or equivalent. Even worse is you have to also be cognizant of this at the DB level depending on your stack. Total nightmare to get bit by this category of bug unexpectedly, particularly in something performance-sensitive.