[email protected]
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to [email protected] • 2 years ago

Destroying friendship

file.coffee

message-square
49
fedilink
611

Destroying friendship

file.coffee

@[email protected] to [email protected] • 2 years ago
message-square
49
fedilink
  • @[email protected]
    link
    fedilink
    English
    94•2 years 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

    • @[email protected]
      link
      fedilink
      76•
      edit-2
      2 years 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/

    • @[email protected]
      link
      fedilink
      English
      41•2 years ago

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

    • @[email protected]
      link
      fedilink
      English
      16•2 years 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.

    • @[email protected]
      link
      fedilink
      3•
      edit-2
      2 years 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
      link
      fedilink
      2•2 years ago

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

[email protected]

[email protected]

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: [email protected]

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.
  • 661 users / day
  • 3.18K users / week
  • 7K users / month
  • 16.5K users / 6 months
  • 53.4K subscribers
  • 12.5K Posts
  • 159K Comments
  • Modlog
  • mods:
  • ghost_laptop
  • @[email protected]
  • Cyclohexane
  • Arthur Besse
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org