Live data from Hacker News

How many man years are wasted with western naming convensions?

games.greggman.com

51–60 of 64 posts

Re: How many man years are wasted with western naming convensions?

#51
post #42

Earlier quoted context omitted.

> Take Japanese for an example, when you have hiragana, katakana, and kanji to express the same idea I'm sure you know this, but for readers who aren't familiar with Japanese, it might be worth saying that hiragana, katakana and kanji aren't strictly interchangeable. Sure you can use hiragana and katakana as a fallback when you cannot or don't want to use the kanji for various reasons, but normally in every situation…

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…

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.

Re: How many man years are wasted with western naming convensions?

#52

Earlier quoted context omitted.

English underuses it You mean it underuses capitalization? What are the examples in other languages that uses for other purposes?

I believe that in German all Nouns are Capitalised, not just Proper Nouns. Please correct Me if I’m wrong. (Except for my Capitalisation, which is all over the place because I’m trying to illustrate to English readers why I find German really hard to read)

Notice that "Capitalised" and "Proper" are adjectives and "Me" is a pronoun, so they're not capitalised in German.

Re: How many man years are wasted with western naming convensions?

#53
post #49

Earlier quoted context omitted.

> are technically optional and could be done without My bad, I thought those were mandatory.

Even if they were mandatory, they're just ligatures. There's no context about them.

The very concept of a ligature is to alter the letter depending on its surrounding context.

Re: How many man years are wasted with western naming convensions?

#54
Programming is for humans, that's why we have programming languages instead of writing machine code... Humans have different concept of writing. I think that's perfectly natural to have conventions on style of writing.

Koreans use sillabic bigrams, in the west we use mostly letters in a handful of variation per country and two main alphabet (how many remember that in Europe we have various letters not only in Cyrillic and it's national variations? Like þ, Ð, ȝ, ...), Japanese have even three alphabets (hiragana, katakana and kanji) often mixed for kanji reading aids, ... we have invented the concept of International Auxiliary Languages, with their alphabets, the most well-known is Esperanto but they never took off because pushing their own language give advantage to the successful push-er and so a war at a time we see winners and looser...

Computer time does not count much in that game.

Re: How many man years are wasted with western naming convensions?

#55
post #42

Earlier quoted context omitted.

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…

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 lingu…

I hate the fullwidth/halfwidth braindamageness with all my heart.

Re: How many man years are wasted with western naming convensions?

#59

Maybe I'm being dense, but I fail to see the point. The code has the exact same sequence of tokens in all cases, just with different names for the constant. The fact that a Ctrl+F doesn't find all related uses seems to be the only argument and it doesn't convince me. The article does not provide an alternative solution, or a discussion of the upsides of different naming conventions (e.g. knowing that ALL_CAPS is almo…

I think he is complaining about not being able to copy paste GL_MAX_TEXTURE_SIZE to limits.GL_MAX_TEXTURE_SIZE? Otherwise I am failing to see the point as well

The point is mapping GL_MAX_TEXTURE_SIZE to glMaxTexureSize, across different capitalization conventions
Post reply on HN