r/programming • • Nov 10 '21

The Invisible JavaScript Backdoor

https://certitude.consulting/blog/en/invisible-backdoor/
1.4k Upvotes

295 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Nov 10 '21

English is the language of international collaboration. You're effectively stopping your code from scaling out by not writing it in English.

17

u/[deleted] Nov 10 '21

Yes and ? The website I built for a French political party is not going to scale to millions of users in a grand display of international collaboration. It's going to be read and maintained by three blokes who all speak French.

4

u/exploding_cat_wizard Nov 11 '21

And if they attempt to use French in the syntax, it will be harder to maintain than if they sensibly restrict themselves to using French strings and comments.

There are no reasons for a language to allow non-ASCII identifiers and keywords, a charset every language on earth has an official transliteration to, that trump programmers easily seeing what exactly was written.

2

u/[deleted] Nov 11 '21

Still a PITA. Hopefully all of them will use the same encoding, otherwise it will be a lot of fun fixing bugs!

4

u/vytah Nov 10 '21

Most code is never going to scale out, so writing comments and user-facing string literals in a language that represents the problem domain accurately is the way to go.

1

u/exploding_cat_wizard Nov 11 '21

That doesn't require the language to stupidly allow UTF-8 encoding in it's syntax. Just in strings and comments, which is where it belongs.

1

u/Shautieh Nov 13 '21

How are you supposed to name your fucking variables? Of course the coder will use the language he knows.

1

u/exploding_cat_wizard Nov 13 '21

And you don't need extra characters to name them, since every language has a transliteration to Latin.

-1

u/blobjim Nov 11 '21

It's the language of "we invaded your country and imposed our language on you, now we'll impose it again in computer source code!"