KittiesAreCute!
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Zerush@lemmy.ml to Memes@lemmy.ml · 2 years ago

Destroying friendship

file.coffee

external-link
message-square
38
link
fedilink
149
external-link

Destroying friendship

file.coffee

Zerush@lemmy.ml to Memes@lemmy.ml · 2 years ago
message-square
38
link
fedilink
alert-triangle
You must log in or # to comment.
  • Brickardo@feddit.nl
    link
    fedilink
    arrow-up
    21
    ·
    2 years ago

    Why, of all possible languages, would you suggest this for Javascript where semicolons are not mandatory

    • ulkesh@beehaw.org
      link
      fedilink
      English
      arrow-up
      7
      ·
      2 years ago

      Not only that, the interpreter will point directly to the line of code and possibly to the exact character that is the problem. Any programmer worth anything would find the issue or, worst case, retype the line of code and have the problem fixed rather quickly. “Illegal character” is a pretty easy error to diagnose.

      But…I still chuckled a little at the intent of the joke. I’m sure there are better pranks one could come up with, though.

    • UnRelatedBurner@sh.itjust.works
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      rule 24

    • Zerush@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      arrow-down
      9
      ·
      2 years ago

      Ask the author of this meme.

  • x4740N@lemmy.world
    link
    fedilink
    English
    arrow-up
    19
    ·
    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

    • ShortFuse@lemmy.world
      link
      fedilink
      arrow-up
      13
      ·
      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/

    • lechatron@lemmy.today
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 years ago

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

    • saigot@lemmy.ca
      link
      fedilink
      arrow-up
      3
      ·
      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 )?

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

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

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

  • dlok@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    2 years ago

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

  • tfw_no_toiletpaper@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    2 years ago

    Maybe if you’re “coding” in notepad

    • notthebees@reddthat.com
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      I had a friend who was a compsci minor who did almost the entirety of said minor on a really old chromebook. They did everything on a basic text editor. You would be surprised

  • Frozzie@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    2 years ago

    Hah. Try it on my version controlled project!

    • Zerush@lemmy.mlOP
      link
      fedilink
      arrow-up
      5
      ·
      2 years 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
        ·
        2 years ago

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

        • InternetPerson@lemmings.world
          link
          fedilink
          arrow-up
          3
          ·
          2 years ago

          When your keyboard is remapped, you commit those changes yourself.

  • Passerby6497@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 years ago

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

  • moshtradamus666@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    2 years 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
      2 years ago

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

      • TrickDacy@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        giv’s

        Wtf

        • Albbi@lemmy.ca
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          It’s ok, someone either put a hair under his ‘e’ key, or remapped it so that it randomly spits out ’ instead.

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

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

  • fubarx@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    2 years 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.

    • PM_ME_VINTAGE_30S [he/him]@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      Running #define ; anything yields error: macro names must be identifiers for both C and C++ in an online compiler. So I don’t think the compiler will let you redefine the semicolon.

  • NegativeLookBehind@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    U+037E

  • TheHottub@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    Replace all

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

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

    • Aurenkin@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

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

  • devfuuu@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    10
    ·
    2 years ago

    Imagine using a language that still uses semicolons.

    • Zerush@lemmy.mlOP
      link
      fedilink
      arrow-up
      12
      ·
      2 years 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
        3
        ·
        2 years ago

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

        • Zerush@lemmy.mlOP
          link
          fedilink
          arrow-up
          3
          ·
          2 years ago

          But they programm in Malbolge

    • Hobbes_Dent@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      What about the Oxford semicolon in formal languages?

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

      I use Rust

    • Sippy Cup@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 years 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: !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.

  • 2.02K users / day
  • 3.44K users / week
  • 7.06K users / month
  • 16.7K users / 6 months
  • 2 local subscribers
  • 53.6K subscribers
  • 14.7K Posts
  • 234K Comments
  • Modlog
  • mods:
  • ghost_laptop@lemmy.ml
  • sexy_peach@feddit.de
  • Cyclohexane@lemmy.ml
  • Arthur Besse@lemmy.ml
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org