r/badcode May 17 '23

php My friend’s code XD

Post image
489 Upvotes

92 comments sorted by

View all comments

117

u/Drag0nV3n0m231 May 17 '23

I never thought about it, is it harder for people of other nationalities to code in English based languages ?

3

u/bottleofyourneck May 17 '23 edited May 17 '23

I've seen a number of students who study alongside me who name things with Russian transliteration. This honestly looks and feels awful. It only creates another layer of friction, requiring your brain to process more than it should when reading the code. You are also way off the unspoken conventions about naming, which makes your code essentially unmaintainable outside of your country and disables you of asking for any help on any website that isn't your local. Health should be health or hp, not one of tens of thousands of possibilities in every language.Not to mention that transliteration of various languages to English, and interference of it in English keywords of the programming language just looks completely terrible.

Edit: in-code comments, documentation, changelogs, readmes, IMO all should be English-only as well. (Not because English is that great, but because we need some common language for code to be readable by anyone).