Programmer Humor

Source: https://0x2121.com/7/Lost_in_Translation/ Alt Text: (For searchability): 3 part comic, drawn in a simple style. The first, leftmost panel has one character yelling at another: "@+_$^P&%!. The second comic has them continue yelling, with their hands in an exasperated position: "$#*@F% $$#!". In the third comic, the character who was previously yelling has their hands on their head in frustration, to which the previously silent character responds: "Sorry, I don't speak Perl". Also relevant: [93% of paint splatters are valid perl programs](https://www.mcmillen.dev/sigbovik/)

129
3

E-mail validation regex example in Perl and Ruby [https://emailregex.com/](https://emailregex.com/)

7
1
https://crates.io/crates/inline-python

So, this uses a macro, but if you're thinking anything is possible with a macro, it's actually not in Rust. The input does still need to parse as valid Rust tokens. Which means the authors asked themselves at some point: Is the Rust syntax a superset of the Python syntax? And well, it's not. In particular, some Python keywords will just be tokenized as an identifier (like a variable name). But it is close enough that the authors decided against requiring a massive string to be passed in, which does amuse me. 🙃

81
9

cross-posted from: https://lemmy.zip/post/24335357

837
68

Context: jest is a Javascript testing library, mocking is something you do in test in order not to use production services. AI understood both terms in a none programming context

423
30
102
3
1
0
208
11
166
5

This happend to me right noww as I tried to write a gui task manager for the GNU/Linux OS

291
28

I'm not a cat i swear

886
45
520
15
https://media.mas.to/media_attachments/files/113/147/059/216/045/542/original/0d753ae3a8226dac.mp4

![](https://lemm.ee/api/v3/image_proxy?url=https%3A%2F%2Fmedia.mas.to%2Fmedia_attachments%2Ffiles%2F113%2F147%2F059%2F216%2F045%2F542%2Foriginal%2F0d753ae3a8226dac.mp4)

137
11
https://media.mas.to/cache/media_attachments/files/113/105/127/065/790/692/original/41cf8762fe392731.mp4

![](https://lemm.ee/api/v3/image_proxy?url=https%3A%2F%2Fmedia.mas.to%2Fcache%2Fmedia_attachments%2Ffiles%2F113%2F105%2F127%2F065%2F790%2F692%2Foriginal%2F41cf8762fe392731.mp4)

101
3