Live data from Hacker News

How many man years are wasted with western naming convensions?

games.greggman.com

41–50 of 64 posts

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

#42

The title seems to imply that this problem does not exist in languages not using Latin scripts. That's not true. Take Japanese for an example, when you have hiragana, katakana, and kanji to express the same idea (and not to mention a kanji typically have more than one way of pronouncing it), the problem is gonna be orders of magnitude more complex.

> 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 up with discrepancies since not everyone agrees on when to use kanji.

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

#43
post #21

Earlier quoted context omitted.

Legibility. It is a significant improvement, and it still bothers me that English underuses it, even after years of it being my primary reading language.

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)

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

#44
post #6

I'd dread to think of what naming conventions would look like if they were modeled after Japanese. You can write the same exact word as ひとごみ, 人ごみ, 人込み, 人混み, 人込, or even ヒトゴミ if you're feeling bold.

Would that solve the problem of type/variable name conflicts in Go?

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

#45
There is also kebap case, which is used in CSS for example.

    number-input-wrapper { background-color: goldenrod; }
But to be honest, for me those conventions are one of the smallest problems when programming.

Oh, and whoever uses lower case snake case in any circumstance needs a slap on the wrist IMO.

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

#46
I was really hoping this was going to turn into a rant about visibility in Go.

As much as I like Go, I really dislike the use of upper case to make things public. About the only thing I miss about Java is the convention of using capitalised words for types and lowercase for fields, methods and variables.

I must hit a name conflict in Go every second week.

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

#47
post #40

That's why we have conventions: to avoid wasting time arguing about which style to use here and there. I wasted more time reading this article than I will ever waste with lower/upper case naming issues. By the way, Arabic has 4 letter forms, Japanese has 3 sets of characters, Chinese has 2 character forms, Vietnamese and some other romanized Asian languages have many diacritics (for the tones) which change the meanin…

a lot of swes in China use pinyin (which is a romanization system for mandarin Chinese) for naming variables/func/etc

basic vocabulary such as time/test/thread/doc/… might be used along with Pinyin as well, so you will see things like dingdan_time, testJieguo, as a Chinese myself, I found this really hard to understand without a broader context since Chinese is a tonal language..

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

#48

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)

Yes, that is correct.

It’s just a convention. Early English writing sometimes also capitalized all nouns.

I imagine the capitalization of Latin alphabets must seem crazy to someone whose native language doesn’t have them.

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

#49
post #19

If we programmed in Chinese, one would need to know thousands of characters to write any decent-sized program; if we programmed in Japanese, one would need to master several alphabets , if we were to program in Hindi, the very shape of our characters would depend of the context... All in all, the upper/lower case problem does not seem to be that much of a waste of man-years.

>if we were to program in Hindi, the very shape of our characters would depend of the context... Eh? What context-dependent-shape-changing are you referring to? Hindi has a very normal alphabet. There are vowels, consonants, and a bunch of special ligatures for some combinations of those that are technically optional and could be done without. Nothing changes according to "context".

> are technically optional and could be done without

My bad, I thought those were mandatory.

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

#50
post #49

Earlier quoted context omitted.

>if we were to program in Hindi, the very shape of our characters would depend of the context... Eh? What context-dependent-shape-changing are you referring to? Hindi has a very normal alphabet. There are vowels, consonants, and a bunch of special ligatures for some combinations of those that are technically optional and could be done without. Nothing changes according to "context".

> 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.
Post reply on HN