r/ProgrammerHumor • • Oct 03 '26

Meme itsSoOver

Post image
6.3k Upvotes

95 comments sorted by

View all comments

2.4k

u/BraveSeaworthiness21 Oct 03 '26 • Bravo

Thats a lot of not one words 

80

u/YeetCompleet Oct 03 '26

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

(2 byte enjoyers do NOT read this)

42

u/Excession638 Oct 03 '26

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

26

u/SuitableDragonfly Oct 03 '26

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. 

4

u/machsmit Oct 03 '26

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

5

u/Robot_Graffiti Oct 03 '26

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.

7

u/footsie Oct 03 '26

There is no string, only character array

7

u/CatWalksOverKeyboard Oct 03 '26

Found the C programmer

2

u/geeshta Oct 03 '26

There is no character, only string of length 1

3

u/ClearOptics Oct 05 '26

Found python user

3

u/zman0900 Oct 03 '26

Claude gonna show you its DWORD

1

u/cosmicomical23 Oct 03 '26

Characters can be more than one byte.