state-of-the-art-shitcode icon indicating copy to clipboard operation
state-of-the-art-shitcode copied to clipboard

Is it necessary to write comments in native language?

Open Unknown-Chinese-User opened this issue 4 years ago • 11 comments

I know it's a ironical project, but I have question whether to write comments in native language. Using Chinese will has trouble shifting input method, and it would lead to many problems between win and linux. But using English will avoid these questions as well as practice Computer English, and it wouldn't cause any problems reading it.

Unknown-Chinese-User avatar Mar 12 '20 05:03 Unknown-Chinese-User

I agree with @Unknown-Chinese-User that it is better to write English comments than Chinese comments.

StepfenShawn avatar Mar 17 '20 08:03 StepfenShawn

Well some Chinese coders will name their vars and write their comments in Pinyin, like YongHuShuJuDao rather than UserDataDao. This should be considered as a culture-specific guideline of shitcode. XD

CSharperMantle avatar Apr 07 '20 23:04 CSharperMantle

@CSharperMantle Talking about Pinyin, I'm gonna say that I prefer reading English comments than Pinyin. Pinyin in codes is totally just SHIT💩💩💩

66Leo66 avatar May 10 '20 09:05 66Leo66

let shuju =“henzhongyaodeshuju”; let yifangwanyi = shuju; var zaiciyifangwanyi =yifangwanyi; console.log(shuju); // zhe xie dou shi shi💩💩💩

andyzhouty avatar May 11 '20 05:05 andyzhouty

This is Chinese Pinyin!

andyzhouty avatar May 11 '20 05:05 andyzhouty

@z-t-y This is absolutely shitcode and exactly what I mean! :hankey:

CSharperMantle avatar May 16 '20 13:05 CSharperMantle

Seems pretty reasonable to write code in the language of your intended users.... If you don't speak English, you write shit code? That doesn't seem quite right. I get that it's just a silly little repo, but when one has an audience, perhaps one should aim for a higher level of conscientiousness. And also maybe you're just wrong- perhaps Pinyin comments are why Didi so thoroughly smoked yall 🤣

KirkHadley avatar May 19 '20 21:05 KirkHadley

I speak Chinese as a native language and for me codes in pinyin looks like it's generated by a random character generator...

Miigon avatar Apr 01 '21 15:04 Miigon

Or, we can even write codes using Chinese Characters!!!😄😄😄 For example:

def 输出(内容):
    print(内容)

数据='你好世界'
输出(数据)

yvvt0379 avatar Jul 18 '21 10:07 yvvt0379

。。。。。。人才

ghost avatar Jul 11 '22 08:07 ghost

@CSharperMantle Talking about Pinyin, I'm gonna say that I prefer reading English comments than Pinyin. Pinyin in codes is totally just SHIT💩💩💩

Yeah, you must read it out to get the meaning. (To make things worse, you need to guess the tone!) 确实,你先要读一遍才能知道是什么意思(而且你得先知道音调!)

yvvt0379 avatar Jul 11 '22 10:07 yvvt0379