trekhleb / state-of-the-art-shitcode

💩State-of-the-art shitcode principles your project should follow to call it a proper shitcode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it necessary to write comments in native language?

Unknown-Chinese-User opened this issue · 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.

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

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 Talking about Pinyin, I'm gonna say that I prefer reading English comments than Pinyin. Pinyin in codes is totally just SHIT💩💩💩

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

This is Chinese Pinyin!

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

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 🤣

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

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

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

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

。。。。。。人才

@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!)
确实,你先要读一遍才能知道是什么意思(而且你得先知道音调!)