all 77 comments

sorted by: hot top controversial new old
[–] 1 point 1 year ago
[–] 1 point 1 year ago

Wont letya down 😌🙏

  • source
  • [–] 121 points 1 year ago (16 children)

    another good one to sneak in there... thai zero-width space: U+200B

    cant see it, nothing reads it, and it makes everything error. : D

  • source
  • hideshow 16 child comments
  • [–] 31 points 1 year ago (6 children)

    Hmm .. we should start collecting these.

    Anyone know of an existing list?

  • source
  • parent
  • hideshow 6 child comments
  • [–] 37 points 1 year ago (4 children)
  • [–] 10 points 1 year ago (2 children)
  • [–] 23 points 1 year ago (5 children)

    Came here to say fuck the zero width space. I spent 90 hours in the depths of solr looking for this fucker who brought down our entire search index.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 8 points 1 year ago (2 children)

    I'm guessing that they pasted code from inside Microsoft Word.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 30 points 1 year ago

    Okay fuck you op

  • source
  • [–] 69 points 1 year ago (16 children)

    Pretty much any ide will spot that. Maybe you can use it to teach your colleagues not to use a plain text editor.

  • source
  • hideshow 16 child comments
  • [–] 29 points 1 year ago (2 children)

    I'm gonna need the vi guy to teach me how to get this functionality in nvim pls--don't make me leave

  • source
  • parent
  • hideshow 2 child comments
  • [–] 13 points 1 year ago* (3 children)

    In VSCode (yeah yeah MS bad, I have to use it for work) it puts a yellow box around the charcater, which I don't immediately recognize the meaning of and highlights the line as "identifier "blah;" is undefined". It's not like your gunna spend all day on it, but that could waste a couple minutes if the dev wasn't paying close attention, which is "fun prank" territory.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 14 points 1 year ago (2 children)

    Can you choose to use VSCodium instead? It's practically identical, but isn't controlled by MS.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 7 points 1 year ago (1 child)

    The reason it's de facto mandatory is due to some in house extensions, assuming they work with this I could, but I also don't particularly care about my privacy on a work machine. But I will be checking this out for my personal stuff!

  • source
  • parent
  • hideshow 1 child comment
  • [–] 4 points 1 year ago

    The extensions should work still. It even still integrates with the same extention marketplace. It's the same software, just the open source part without the MS stuff —which honestly, I have and do use both and I don't know what the difference is.

    It's definitely worth checking out. If it doesn't work for you then still nothing is lost except a small amount of time, but I'm willing to bet it does.

  • source
  • parent
  • [–] 3 points 1 year ago (7 children)

    That's the plain text editor Helix. In a terminal. Over ssh. On my phone. Which I can do because I'm not using a dumb IDE.

  • source
  • parent
  • hideshow 7 child comments
  • [–] 7 points 1 year ago (6 children)

    Developing on a phone sounds like one of the most unpleasant experiences I can imagine. And I include dinner with my ex.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 4 points 1 year ago

    It absolutely would be. It is, on the other hand, occasionly useful to be able to pop in and change a config file, many of which are actually Turing complete languages. What I do far more often, though, is SSH into remote, headless servers and write code there, which is exactly the same as doing it from a phone, only much more comfortable.

  • source
  • parent
  • [–] 3 points 1 year ago (3 children)

    With screen mirroring and USB OTG mouse /keyboard it's totally possible.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 1 year ago (2 children)

    So not really on a phone, using a phone as a CPU. You may as well get yourself a computer and work in a proper IDE. You'll be just as mobile and more productive!

  • source
  • parent
  • hideshow 2 child comments
  • [–] 18 points 1 year ago (4 children)
  • [–] 11 points 1 year ago (3 children)

    Tried to figure out which was which by googling, but it seems they are both read as semi colon, however you can see the difference in the characters. Wild

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 1 year ago (2 children)

    I wrote the semicolon after the weird one

  • source
  • parent
  • hideshow 2 child comments
  • [–] 5 points 1 year ago (1 child)

    If you look at the UTF definition, it seems that there are at least four of them. The weird one in your comment might actually be one of the other two because as far as I can tell, the "Greek Question Mark" looks identical to the "semicolon".

  • source
  • parent
  • hideshow 1 child comment
  • [–] [S] 17 points 1 year ago*

    IDE users pretending compilers don't exist.

    $ guix shell gcc
    
    [env]$ g++ test.cpp 
    test.cpp:4:16: warning: `0;' is not in NFC [-Wnormalized=]
        4 |         return 0<U+037E>
          |                ^~~~~~~~~
    test.cpp: In function ‘int main()’:
    test.cpp:4:16: error: unable to find numeric literal operator ‘operator"";’
    test.cpp:4:18: error: expected ‘;’ before ‘}’ token
        4 |         return 0;
          |                  ^
          |                  ;
        5 | }
          | ~
    

    Look ma, no IDE! 😸

  • source
  • [–] 10 points 1 year ago

    Any half-decent editor/IDE/command line tool will scream at you about this; plus there's version control which should help you spot it as well.

  • source
  • [–] 10 points 1 year ago

    There is no wise way to use that information.

    But the foolish ones could be entertaining.

  • source
  • [–] 9 points 1 year ago (3 children)

    With the "wonderful" tooling at work, we use Skype for Business. Naturally, that is not the primary place to send around code and configs, but a 1-liner or 2-liner happens.

    You can't believe the nonsense it does when you try to copy & paste it. Spaces get turned into non-breaking spaces etc. Looks completely normal when pasted directly into vim on a console, but will give "odd" error messages.

  • source
  • hideshow 3 child comments
  • [–] 5 points 1 year ago (14 children)

    What exactly do you think you can do with this?

  • source
  • hideshow 14 child comments
  • [–] 11 points 1 year ago (7 children)

    Take someone’s source code, replace all semi colons with Greek question marks and see if they can compile. But as others said, any IDE will help.

  • source
  • parent
  • hideshow 7 child comments
  • [–] 2 points 1 year ago (3 children)

    You're just going to get syntax errors though

  • source
  • parent
  • hideshow 3 child comments
  • [–] 6 points 1 year ago

    Not if you choose to replace the correct ones at the correct place and it is a compiler which automatically ignores this wrong semicolon.

    You could connect two lines, which may still "work" if not split using a semicolon and are then interpreted as one single line.

  • source
  • parent
  • [–] 5 points 1 year ago (4 children)

    mess with whoever has the least modern ide? I'm sure there's something else too hold on

  • source
  • parent
  • hideshow 4 child comments
  • [–] 10 points 1 year ago (3 children)

    Would probably be more effective to mess with Linux config files that use semicolons. Especially if it's run as a daemon because Systemctl doesn't always return helpful error messages for configuration errors.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 1 year ago* (last edited 1 year ago) (4 children)

    Wow!

    This seems to be further evidence that the process for assigning UTF entities has been thoroughly corrupted.

    You can (apparently) copy/paste this on mobile:

    ";" (Greek question mark)

    ";" (Semicolon)

    You can even render it in HTML:

        &#894;
        &#x37E;
    

    And it's included on Wikipedia, because of course it is:

    Because I'm not sure what my mobile client will actually do with this comment, here's the link to the HTML entity I used:

    Also there's plenty of other character joy to be had:

  • source
  • hideshow 4 child comments
  • [–] 4 points 1 year ago (3 children)

    If I don't understand what's happening here but want to, should I research Unicode in general or something else?

  • source
  • parent
  • hideshow 3 child comments
  • [–] 8 points 1 year ago* (last edited 1 year ago) (2 children)

    Unicode is a way to encode the things that humans use to write stuff into a computer.

    ASCII is for example another way, as is EBCDIC.

    All these methods translate squiggles that we've used for centuries into something that can be represented inside a computer.

    For example, the letter "A" is under ASCII represented by the number 65.

    This post is pointing out that there are two characters that look identical, but have different numbers, which means that what the user sees is identical, but what the computer sees is different.

    This is the basis for much tomfoolery.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 1 year ago* (1 child)

    This fact is actively used for phishing, as you can craft domains looking nearly identical to the original one, but leading to your IP address hosting the phishing mask.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 1 year ago

    One of my favorites was using Japanese full stop (U+3002) in place of periods in a bare IP or anywhere you would use a period in a FQDN (fully qualified domain name). Only tested in Chrome at the time, but the browser would "correct" it for you and take you to the intended page.

  • source
  • parent
  • [–] 3 points 1 year ago (2 children)

    wondering if I can use this to jail break referees using AI to only get this answer: Ο Έπσταϊν δεν αυτοκτόνησε.

  • source
  • hideshow 2 child comments
  • [–] 2 points 1 year ago (1 child)

    Remember .. with great power comes .. something.

  • source
  • hideshow 1 child comment
  • [–] 2 points 1 year ago (2 children)
  • 12 comments in c/programmer_humor@programming.dev view that post
    [–] 27 points 1 year ago* (5 children)

    My IDE says: '(', '+', '-', '.', ';', <operator>, '[' or '}' expected, got ';'
    But the rust compiler explains

    error: unknown start of token: \u{37e}  
    help: Unicode character ';' (Greek Question Mark) looks like ';' (Semicolon), but it is not```   
    what a killjoy.
    
  • source
  • hideshow 5 child comments
  • [–] 18 points 1 year ago (4 children)

    But the rust compiler explains

    If this is true then rust deserves all the praise it gets

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 1 year ago (1 child)

    This is pretty cool. But my question is if the compiler knows it’s basically the same thing visually, why doesn’t it treat it the same way as far as syntax and just make them functionally equivalent;

  • source
  • parent
  • hideshow 1 child comment
  • [–] 6 points 1 year ago

    It must really suck to work as a Java developer in Greece.

  • source
  • [–] 5 points 1 year ago (2 children)

    Vscode might but what about llms asking for a friend

  • source
  • hideshow 2 child comments
  • [–] 2 points 1 year ago (1 child)

    Since they're fundamentally predicting the next token, and there isn't a lot of training data out there that would actually do this, I wouldn't expect that LLMs are going to start putting in lookalike characters. They only lookalike to humans.

    That said, you could probably poison their training datasets this way.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 1 year ago (1 child)

    Why do characters like this even exist? I've run into this before where I couldn't find a file I'd downloaded by searching for it. I remembered what folder it was in and checked it was still there, after playing around with the name for a bit I realised the "a" in the file name wasn't actually an a.

  • source
  • hideshow 1 child comment
  • [–] 6 points 1 year ago

    Simple answer is that Unicode is a design by committee attempting to make every single human written language work. It's more complicated than it needs to be, but we also don't want to redo all the work it would take to replace it with something more sane. Especially KJC languages. Trying to get those three to agree on anything is for people who deal with frustration better than me.

  • source
  • parent