trekhleb / state-of-the-art-shitcode

💩State-of-the-art shitcode principles your project should follow to call it a proper shitcode
MIT License
5.55k stars 313 forks source link

Is it necessary to write comments in native language? #11

Open Unknown-Chinese-User opened 4 years ago

Unknown-Chinese-User commented 4 years ago

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.

StepfenShawn commented 4 years ago

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

CSharperMantle commented 4 years ago

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

66Leo66 commented 4 years ago

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

andyzhouty commented 4 years ago

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

andyzhouty commented 4 years ago

This is Chinese Pinyin!

CSharperMantle commented 4 years ago

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

KirkHadley commented 4 years ago

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 🤣

Miigon commented 3 years ago

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

yvvt0379 commented 3 years ago

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

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

数据='你好世界'
输出(数据)
ghost commented 2 years ago

。。。。。。人才

yvvt0379 commented 2 years ago

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