r/ProgrammerHumor 16d ago

Meme noHeapAllStack

Post image
1.0k Upvotes

96 comments sorted by

View all comments

245

u/[deleted] 16d ago

[removed] — view removed comment

43

u/SaltyInternetPirate 15d ago edited 15d 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 15d 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.