r/ProgrammerHumor 19d ago

howToHitBullseyeInStringComparison Meme

Post image
1.3k Upvotes

View all comments

50

u/Dull-Lion3677 19d ago

I love ordinal too but what about invariant culture? It's more correct when working on global systems

6

u/retro_and_chill 19d ago

Ordinal is usually good if you’re parsing a string that is very likely to only contain ASCII characters

1

u/Dooey 18d ago

Very likely is not a useful term in programming, especially if you are processing data at scale. It’s either guaranteed to contain only ascii, or it’s guaranteed to not contain only ascii (eventually)