this post was submitted on 31 Jul 2025
590 points (98.7% liked)

Programmer Humor

37539 readers
372 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[–] AmazingAwesomator@lemmy.world 123 points 2 days ago (4 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

[–] anton@piefed.blahaj.zone 6 points 1 day ago

‏The right to left mark (U+2000F) can also be fun.

[–] vk6flab@lemmy.radio 34 points 2 days ago (2 children)

Hmm .. we should start collecting these.

Anyone know of an existing list?

[–] Edie@lemmy.ml 39 points 2 days ago (2 children)
[–] AmbiguousProps@lemmy.today 10 points 2 days ago (2 children)
[–] JohnnyCanuck@lemmy.ca 3 points 2 days ago

Oh ho! I 󠁤󠁯󠁮󠀧󠁴 see what you did there!

load more comments (1 replies)

I'm not an expert in Glagolitic, but I have a feeling that next-to-none of its letters are supposed to be invisible.

[–] S_H_K@lemmy.dbzer0.com 3 points 1 day ago (1 children)

Before I went to the comments I wished no one mentioned that. As a DBA I fucking hate you...

i am an SDET. this character destroys DBs... i am sorry :(

[–] CallMeAnAI@lemmy.world 22 points 2 days ago (4 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.

[–] derfunkatron@lemmy.world 14 points 2 days ago (1 children)

I deal with shy hyphens a lot. They don’t display unless there’s a line break, so they get copied from various word docs or websites and end up in a database somewhere waiting to piss me off.

load more comments (1 replies)
load more comments (3 replies)
[–] AddLemmus@lemmy.ml 10 points 1 day ago (1 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.

[–] BananaIsABerry@lemmy.zip 4 points 1 day ago (2 children)
[–] AddLemmus@lemmy.ml 3 points 1 day ago

At this point, even Microsoft wants them to stop using it, but they are stubborn and try to keep it running until they turn off the lights the hard way.

[–] Bassman1805@lemmy.world 2 points 1 day ago

Officially, no.

[–] MyNameIsRichard@lemmy.ml 79 points 2 days ago (5 children)

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

[–] AmbiguousProps@lemmy.today 13 points 2 days ago

You can pry my vim and nano from my cold, dead hands!

^(I use an ide sometimes)^

[–] tisktisk@piefed.social 30 points 2 days 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

[–] ozymandias117@lemmy.world 15 points 2 days ago (1 children)

The plugin YouCompleteMe would show a warning on that line

load more comments (1 replies)
load more comments (1 replies)
[–] saigot@lemmy.ca 13 points 2 days ago* (last edited 2 days ago) (1 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.

[–] Cethin@lemmy.zip 15 points 2 days ago (1 children)

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

[–] saigot@lemmy.ca 7 points 2 days ago (1 children)

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!

[–] Cethin@lemmy.zip 4 points 2 days 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.

[–] sxan@midwest.social 4 points 2 days ago (1 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.

[–] MyNameIsRichard@lemmy.ml 7 points 2 days ago (3 children)

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

[–] sxan@midwest.social 4 points 1 day 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.

[–] RizzRustbolt@lemmy.world 2 points 1 day ago

Maybe they've got tiny thumbs.

[–] hakunawazo@lemmy.world 3 points 2 days ago (1 children)

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

[–] MyNameIsRichard@lemmy.ml 2 points 1 day ago (1 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!

[–] barubary@infosec.exchange 3 points 1 day ago (1 children)

CPU? It's called a modem!!

Why yes my phone has both a CPU and a modem.

load more comments (1 replies)
[–] kamen@lemmy.world 11 points 1 day 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.

[–] segfault11@hexbear.net 54 points 2 days ago (1 children)

fr*cking rust ruining the fun sicko-wistful

You can't err out rust.

[–] KingThrillgore@lemmy.ml 31 points 2 days ago

Okay fuck you op

[–] paequ2@lemmy.today 23 points 2 days ago* (last edited 2 days 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! 😸

[–] umbrella@lemmy.ml 18 points 2 days ago* (last edited 2 days ago)

chill, satan.

[–] scott@lemmy.org 20 points 2 days ago (1 children)
[–] chortle_tortle@mander.xyz 11 points 2 days 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

load more comments (3 replies)
[–] unyons@feddit.org 16 points 2 days ago (1 children)

This is indeed some next-level fuckery.

load more comments (1 replies)
[–] sovietknuckles@hexbear.net 13 points 2 days ago* (last edited 2 days ago) (1 children)

I don't see a problem

#include <iostream>

#define ; ;;

int main(){
  std::cout << ";\n";
}
[–] HiddenLayer555@lemmy.ml 7 points 2 days ago

Whoa the font on the Lemmy web UI actually renders them differently!

[–] waigl@lemmy.world 10 points 2 days ago

There is no wise way to use that information.

But the foolish ones could be entertaining.

load more comments
view more: next ›