x4740N ,

Wouldn't most development programs tell them the syntax error on the line and column where you replaced the semicolon

This wouldn't work

lechatron ,
@lechatron@lemmy.today avatar

Just tested in the console, it gives an illegal character error and gives you the line number.

Cipher22 ,

It would work for someone just starting and not knowing good tooling yet. However, the compiler should also tell you where to look and give you the area to look at as well. It'll be less clear than an IDE, though.

ShortFuse , (Bearbeitet )

VSCode will add a yellow box around the character and tell you it's an uncommon glyph.

https://code.visualstudio.com/updates/v1_63#_unicode-highlighting

To note, this came about because it could be valid code and it's a security risk from copy/pasting malicious code. See:

https://certitude.consulting/blog/en/invisible-backdoor/

kamen ,

Yup. It's as if we're assuming this friend is coding inside Notepad.

saigot ,

Yeah, doing something similar with brackets would be much more effective since that usually doesn't give a line number. Is there a unicorn clone of )?

phorq ,

Even better would be to remap their keyboard's semicolon key to that symbol

Aurenkin ,

Before I read this comment I believed the concept of hell was immoral.

bobs_monkey ,

We all have the one friend or coworker..

imnotfromkaliningrad ,
@imnotfromkaliningrad@lemmy.ml avatar

you are a criminal.

  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • memes@lemmy.ml
  • haupteingang
  • Alle Magazine