News for hackers. Stuff that matters.
Re:LCUI – A small C library for building user interfaces wit... by kodablah on Wednesday February 07, 2018 @06:10PM (#16328829)
Always strange to see code and variables in English and comments in Chinese, but I see it frequently. Not sure whether it's a good or bad thing, just seems a bit inconsistent and a way to ward off potential contributors. It seems you will have to know two languages to contribute, one for the comments and one for the variable and function names.
Re:LCUI – A small C library for building user interfaces wit... by lcsoft on Wednesday February 07, 2018 @09:26PM (#16329711)
At the beginning of this project, the author naive to think Chinese comment will attract more Chinese contributors. However, it does not actually work. So the author will consider commenting in English. In the new code.
Re:LCUI – A small C library for building user interfaces wit... by zshbleaker on Thursday February 08, 2018 @05:31AM (#16331308)
It's just hard for people to express complex ideas (comments e.g.) in other languages rather than their native language. And variables in code are just basic words, nothing on gramma or other stuff.
Re:LCUI – A small C library for building user interfaces wit... by tenken on Wednesday February 07, 2018 @09:03PM (#16329620)
Still better than a language like Go or PHP where the keywords are in English, but the programmers variables are in Spanish, french or German.

Icy Glare ... Hahaha. Give me clean mono-language "source" code any day please.

Re:LCUI – A small C library for building user interfaces wit... by rmetzler on Wednesday February 07, 2018 @10:00PM (#16329848)
> Give me clean mono-language "source" code any day please.

Unfortunately, not many programming languages with German keywords exist. ;-)

No, as a German, I understand your concern. The problem is, you need to be fluent in the language AND use names that fit the variables. I work in High Performance Computing and the code physicists write isn't accessible to me most of the times, just because they use one and two letter variables from their formulas in their code.

Re:LCUI – A small C library for building user interfaces wit... by cntlzw on Thursday February 08, 2018 @03:23AM (#16330912)
Unfortunately you have to name your variables in the context of the domain language. The domain language is usually in your native language. The keywords are in English. It looks horrible but there is no way around it. And you lucky native English speakers have never experienced the horror that are umlauts in filenames across filesystems and encodings.
Re:LCUI – A small C library for building user interfaces wit... by Avamander on Thursday February 08, 2018 @06:15AM (#16331448)
shudder that reminds me that you can't Control+F "üõöä" properly in Chromium, both "uooa" and "üõöä" are matched, that's for me far more infuriating that breaking filename encoding.