lemmy.yachts
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Zerush@lemmy.ml to Memes@lemmy.ml · 1 year ago

Destroying friendship

file.coffee

message-square
34
fedilink
420

Destroying friendship

file.coffee

Zerush@lemmy.ml to Memes@lemmy.ml · 1 year ago
message-square
34
fedilink
alert-triangle
You must log in or # to comment.
  • x4740N@lemmy.world
    link
    fedilink
    English
    arrow-up
    64
    arrow-down
    1
    ·
    1 year 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
      51
      ·
      edit-2
      1 year 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/

    • Cipher22@lemmy.world
      link
      fedilink
      English
      arrow-up
      11
      arrow-down
      1
      ·
      1 year 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.

    • kamen@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

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

  • phorq@lemmy.ml
    link
    fedilink
    Español
    arrow-up
    42
    ·
    1 year ago

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

    • Aurenkin@sh.itjust.works
      link
      fedilink
      arrow-up
      24
      ·
      1 year ago

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

      • bobs_monkey@lemm.ee
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        We all have the one friend or coworker…

    • я не из калининграда@lemmy.ml
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      you are a criminal.

  • Passerby6497@lemmy.world
    link
    fedilink
    English
    arrow-up
    20
    ·
    1 year ago

    Meanwhile in VS Code: hey, I see this Unicode symbol that’s confused for this expected symbol, would you like to replace it?

  • NegativeLookBehind@lemmy.world
    link
    fedilink
    English
    arrow-up
    16
    ·
    1 year ago

    U+037E

    • whotookkarl@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      BOM U+FEFF is another fun one, most editors won’t show it but it can cause errors like when I found one in a SQL script that was combined from existing utf-8 files together with cat. You’ll see it in a hex editor or in notepad I think it just made the rest of the line italic.

  • tfw_no_toiletpaper@lemmy.world
    link
    fedilink
    arrow-up
    16
    ·
    1 year ago

    Maybe if you’re “coding” in notepad

  • moshtradamus666@lemmy.world
    link
    fedilink
    arrow-up
    13
    ·
    1 year ago

    That’s too evil. At my work people like to put a tape under someone’s mouse and it can be pretty funny.

    • Zerush@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 year ago

      Some hairs under the lens, it gives some funny erratic moves of the pointer.

      • LittleBorat2@lemmy.ml
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        The funny erratic movement can keep your work pc from locking up while you do nothing. It’s win win.

      • TrickDacy@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        giv’s

        Wtf

    • Feyr@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      If you get a post-it just right halfway over the lens, the mouse will only move in one direction!

  • dlok@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    1 year ago

    Wanted to use this to prank a colleague but SQL server accepts that as well lol

  • fubarx@lemmy.ml
    link
    fedilink
    arrow-up
    9
    ·
    1 year ago

    MSVC supports unicode. In C or C++, you could try:

    #define ; ;

    Second one is the greek semicolon but the client I’m using may strip it out. I’m too lazy to try.

    • Sailing7@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I’m not sure but I think the second one looks just a tiny bit different, so it should have worked.

  • Frozzie@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    1 year ago

    Hah. Try it on my version controlled project!

    • Zerush@lemmy.mlOP
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      1 year ago

      What? Remapping your keyboard? Well, there are worst jokes, I still remember that time when the first PCs appeared and you could try them in shopping centers. They quickly stopped doing this, because some went into the BIOS and disabled the keyboard or worse, the screen, Hail Satan. Good ol’ times 😏

      • Frozzie@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        No I mean the code is on a git repository so you see unsaved changes

  • TheHottub@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    Replace all

  • AwkwardTurtle@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    8===D (;)

  • idunnololz@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Hilt

  • reddit_sux@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Would be cooler if u do it in C

  • HenriVolney@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    u/foundsatan

  • devfuuu@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    5
    ·
    edit-2
    1 year ago

    Imagine using a language that still uses semicolons.

    • Zerush@lemmy.mlOP
      link
      fedilink
      arrow-up
      7
      ·
      1 year ago

      I still use it in Spanish, English and also in German, but certainly not very often.

      https://www.merriam-webster.com/grammar/a-guide-to-using-semicolons

      • bigkahuna1986@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Klingon doesn’t have a semicolon, switch to that.

        • Zerush@lemmy.mlOP
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          But they programm in Malbolge

    • Hobbes_Dent@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      What about the Oxford semicolon in formal languages?

    • asudox@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      I use Rust

    • Sippy Cup@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      deleted by creator

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: [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.
Visibility: Public
globe

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

  • 1.61K users / day
  • 3.57K users / week
  • 7.71K users / month
  • 22.5K users / 6 months
  • 1 local subscriber
  • 51.5K subscribers
  • 9.89K Posts
  • 83.3K Comments
  • Modlog
  • mods:
  • ghost_laptop@lemmy.ml
  • Cyclohexane@lemmy.ml
  • Arthur Besse@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org