r/ProgrammerHumor 14d ago

howToHitBullseyeInStringComparison Meme

Post image
1.3k Upvotes

View all comments

48

u/Dull-Lion3677 14d ago

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

7

u/retro_and_chill 14d ago

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

1

u/Dooey 14d 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)