The Bard's Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
realitista@lemmy.world to Programmer Humor@programming.dev · 2 years ago

Pure Evil

lemmy.world

message-square
30
link
fedilink
335

Pure Evil

lemmy.world

realitista@lemmy.world to Programmer Humor@programming.dev · 2 years ago
message-square
30
link
fedilink
alert-triangle
You must log in or # to comment.
  • darcy@sh.itjust.works
    link
    fedilink
    arrow-up
    92
    arrow-down
    1
    ·
    2 years ago

    any modern compiler or ide will notice this and warn you.

    • Jumuta@sh.itjust.works
      link
      fedilink
      arrow-up
      10
      arrow-down
      2
      ·
      2 years ago

      meanwhile vim:

      • Amaltheamannen@lemmy.ml
        link
        fedilink
        arrow-up
        12
        ·
        2 years ago

        If you are coding on vim you use a language server 😝

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

        vim is not an ide i believe. but an lsp will notice

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

    Any remotely capable IDE will immediately show you what, and where, the problem is.

    • etler@programming.dev
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      2 years ago

      That means that detection was added explicitly because this prank was done enough that it was worth it to add.

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

        We do a little trolling

      • Quik@infosec.pub
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        The reason is in fact not only because of this exact symbol, but because people tried to change program’s behavior in a malicious way by replacing legitimate code with same looking symbols.

  • SokathHisEyesOpen@lemmy.ml
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    1
    ·
    2 years ago

    I knew a guy who used the Unicode character for a space in his password. He figured if anyone ever saw his password they’d think it was a space and still not be able to use it. It’s silly, but it was a fun thing to learn about him.

    • bc001@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      Which character. Does it need Combination of keys or a Single key.

      • SokathHisEyesOpen@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        A combination of keys. I don’t remember the code anymore.

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

          Alt-255 was the old-school method.

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

            I use alt 0160 for a non-line breaking space.

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

            I can’t type alt codes with my keyboard.

    • shastaxc@lemm.ee
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      That’s pretty neat, but also means he will never be able to log into things on mobile

      • elint@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        Bitwarden has no problem filling passwords containing unicode characters on Andorid.

  • coffee_poops@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 years ago

    semicolons are optional in js anyway…

    • mrpants@midwest.social
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 years ago

      Most of the time. Sometimes it can lead to code that is ambiguous and ASI picks the wrong way to interpret it.

      https://stackoverflow.com/questions/25088708/what-rules-must-i-follow-to-write-valid-javascript-without-semicolons

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

        Right, but there’s not going to be a syntax error.

  • Python@programming.dev
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    2 years ago

    ESLint has entered the room

    • MeatsOfRage@lemmynsfw.com
      link
      fedilink
      English
      arrow-up
      7
      ·
      2 years ago

      Or any coding software really. Does this guys friend code in notepad?

  • Drew Belloc@programming.dev
    link
    fedilink
    arrow-up
    5
    ·
    2 years ago

    If the language doesn’t force me to use semicolons i will forget

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

    Technically I don’t think any Greek layout uses a different Unicode codepoint for the question mark. In fact, the ordinary semicolon symbol is used, so what the meme describes would probably not happen IRL.

    Does all this make it any less funnier? No. It’s still brilliant.

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

      Unicode should have enforced the principle of using the same encoding for similar looking characters like they did with CJK instead of allowing bullshit like the Cyrillic “o” or the Greek question mark.

      • yum13241@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        1,000% percent.

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

    Me who programs in rust which has a specific compiler message to tell me what happened

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

    deleted by creator

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

    Who uses semicolons in Javascript?

    • tkarika@lemmy.world
      link
      fedilink
      arrow-up
      21
      arrow-down
      1
      ·
      2 years ago

      Every real programmers

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 449 users / day
  • 1.82K users / week
  • 4.29K users / month
  • 10K users / 6 months
  • 1 local subscriber
  • 29.2K subscribers
  • 1.5K Posts
  • 26.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.14
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org