Hacker News new | ask | show | jobs
by freeopinion 1832 days ago
I accept your caution. But it is fun for me to consider the differences in these:

enum Size { P, XS, S, M, L, XL, XXL }

enum Size { Petit, Extra_Small, Small, Medium, Large, Extra_Large, Extra_Extra_Large }

enum Size { 小小小, 小小, 小, 中, 大, 大大, 大大大 }

Which do you prefer: P, Petit, Petite, 小小小, 3小, XXS, 2XS?

English is chalk full of non-English words. And lots of symbols are useful. Sometimes it's worth it to learn the symbol. And often not much harder than learning the English abbreviation.

enum ⏻ { ⭘, ⏽, ⏾ }

Again, "typeable" is ambiguous but obviously an important consideration.

None of this is to argue against your point. Just musing.

1 comments

That's not standard Chinese. Is it Japanese?

You could write SSS, SS, LL and LLL in English too.

By the way, it's 'chock-full' not 'chalk-full'.

Thanks for the correction. TIL

Are you distinguishing Chinese or Japanese on visual appearance? Or by some other method?

I think 小中大 have an advantage over SML because SML have no meaning by themselves. 小中大 have the exact meaning we need. Granted, 中 kinda ruins that argument. Size::中 is very clear, but perhaps not more so than Size::M.

I'm actually curious. Which do you like better in code? P, SSS, XXS, 小小小, 3S, 3小, whole words, something else?

I can't read Japanese. I just know they use characters slightly differently, so I can't be sure they wouldn't write that.

The majority of people in the world can read and type 'S' easily, not so for '小'.

It seems you're basically arguing for pictograms. Like coding in Wingdings with a character map or something.

I would prefer to use a number scale, but if I had to choose from those options I would use whatever is most conventional in whatever area I'm in, which would probably be XXS.