this post was submitted on 19 Dec 2023
84 points (94.7% liked)

Programming

17332 readers
274 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] monk@lemmy.unboiled.info 45 points 10 months ago (12 children)

Homoglyphs? Invisible text? Bidirectional text? Just highlight every line that goes beyond ASCII with yellow warning colors and require to vet it. Maybe make localization data an exception.

[–] cbarrick@lemmy.world 12 points 10 months ago (5 children)

This doesn't work for code bases written in non-English languages. Especially east asian languages.

Any line containing an identifier that is also a word would be highlighted.

More and more programming languages are supporting unicode identifiers for this use case.

[–] monk@lemmy.unboiled.info 6 points 10 months ago

Yeah, just don't. Allowing to code in anything other than English is a disservice, plain and simple.

Inb4, I'm not being US-centric, Latin ain't even my native alphabet.

load more comments (4 replies)
load more comments (10 replies)