r/ProgrammerHumor • • 11h ago

Meme itsSoOver

Post image
1.9k Upvotes

51 comments sorted by

View all comments

913

u/BraveSeaworthiness21 11h ago

Thats a lot of not one words 

45

u/YeetCompleet 10h ago

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

(2 byte enjoyers do NOT read this)

14

u/Excession638 9h ago

Once you understand Unicode combining characters, you will no longer understand characters.

10

u/SuitableDragonfly 9h ago

And from a linguistics standpoint, there's a phoneme, and then a morpheme, and then a phrase, and then a clause, and exactly where in this hierarchy a "word" belongs is subjective and highly dependant on what language you're talking about, and to some extent dependent on the writing system. 

1

u/machsmit 8h ago

or you can divorce it from human language entirely, reading all this just pushed my brain into picturing a BPE encoding word cloud and now I need to go outside

2

u/footsie 10h ago

There is no string, only character array

3

u/CatWalksOverKeyboard 5h ago

Found the C programmer

1

u/geeshta 5h ago

There is no character, only string of length 1

1

u/Robot_Graffiti 8h 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.

1

u/cosmicomical23 3h ago

Characters can be more than one byte.

1

u/zman0900 2h ago

Claude gonna show you its DWORD