Lemmy きゃ/kya.moe
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Zerush@lemmy.ml to Memes@lemmy.ml · 6 months ago

Destroying friendship

file.coffee

message-square
50
fedilink
609

Destroying friendship

file.coffee

Zerush@lemmy.ml to Memes@lemmy.ml · 6 months ago
message-square
50
fedilink
  • x4740N@lemmy.world
    link
    fedilink
    English
    arrow-up
    95
    arrow-down
    1
    ·
    6 months ago

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

    This wouldn’t work

    • ShortFuse@lemmy.world
      link
      fedilink
      arrow-up
      78
      ·
      edit-2
      6 months ago

      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/

    • lechatron@lemmy.today
      link
      fedilink
      English
      arrow-up
      41
      ·
      6 months ago

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

    • Cipher22@lemmy.world
      link
      fedilink
      English
      arrow-up
      17
      arrow-down
      1
      ·
      6 months ago

      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.

    • saigot@lemmy.ca
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      6 months ago

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

    • kamen@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      6 months ago

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

Memes@lemmy.ml

memes@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !memes@lemmy.ml

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.51K users / day
  • 4.55K users / week
  • 10K users / month
  • 25K users / 6 months
  • 9 local subscribers
  • 45.5K subscribers
  • 12.6K Posts
  • 268K Comments
  • Modlog
  • mods:
  • ghost_laptop@lemmy.ml
  • sexy_peach@feddit.de
  • Cyclohexane@lemmy.ml
  • Arthur Besse@lemmy.ml
  • BE: 0.19.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org