DEV Community

Discussion on: RIP Copy and Paste from Stackoverflow! 🚨 (+Trojan Source Solution)

Collapse
 
sebnyberg profile image
Sebastian Nyberg • Edited

Great article!

I recommend reading Russ Cox's post:
research.swtch.com/trojan

This is not new, its not specific to RTL LTR, and its also not something that should be "fixed" by compilers or language specs but rather by developer tools (like the one that you created). Stackoverflow should reject code that contains these characters.

In this 3 year old Go issue about the LTR / RTL vulnerability, one of the authors of UTF-8 (Rob Pike) voices the same opinion about putting fixes into programming languages / compilers:
github.com/golang/go/issues/20209#...

Collapse
 
bytehide profile image
ByteHide

Thank you for the article and your comment, you are right and I find it very interesting.

Thanks for the contribution!

Some comments have been hidden by the post's author - find out more