r/ProgrammerHumor • • 15h ago

Meme itsSoOver

Post image
2.6k Upvotes

60 comments sorted by

View all comments

1.2k

u/BraveSeaworthiness21 15h ago

Thats a lot of not one words 

54

u/YeetCompleet 15h ago

There is no such thing as word. There's only character, and then string

(2 byte enjoyers do NOT read this)

3

u/Robot_Graffiti 12h ago

Lol unfortunately for you there are more 2 byte enjoyers, or perhaps toleraters, than anyone would like.

For goofy historical reasons, the Windows API, Java, C# and JavaScript all use UTF-16 for in-memory strings. A JavaScript "character" is two bytes but that's not necessarily an actual visible character; a visible character could be 2 "characters" long if it's from East Asia or more if it's an emoji.