Hacker News new | ask | show | jobs
by aikinai 1484 days ago
I think the idea is to think about what would have happened if programming started in another language. If it were Japanese, it’s easy to imagine that you’d have the same issue with different styles in different contexts.

Some contexts might call for all hiragana variables, some all katakana, and some using the most likely/appropriate form of the word, including kanji. And in the third case, you’re still going to end up with discrepancies since not everyone agrees on when to use kanji.

2 comments

And don't forget script number four in Japanese: Latin letters! Used for all sorts of odds and ends not covered by the other scripts; mostly (abbreviations of) names like 「IBM」. These conveniently come in full-width versions for use with kanji, hiragana, and katakana, but this of course won't stop anyone from using the basic letters we're using here. So in the hypothetical case where Unicode is a thing, but the lingua franca of software engineering is Japanese instead of English, you might end up with variables named:

    変数
    へんすう
    ヘンスウ (or even ヘンスウ)
    variable
    VARIABLE
    variable
    VARIABLE
…and all the additional snakes and camels varying the notations further.
I hate the fullwidth/halfwidth braindamageness with all my heart.
Without capitalization you would not able to have a class Thing with an instance thing.

It's a short article but maybe capitals have been useful overall