Programmer Humor
![](https://0x2121.com/comics/comic_2007-11-08_0.jpg?thumbnail=1024&format=webp)
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/)
![programmerhumor](https://lemm.ee/api/v3/image_proxy?url=https%3A%2F%2Flemmy.ml%2Fpictrs%2Fimage%2Fc0ed0a36-2496-4b4d-ac77-7d2fd7f2b5b7.png?format=webp&thumbnail=48)
![](https://lemm.ee/pictrs/image/431880b5-2c3a-45cf-91ad-745d0aa21237.png?thumbnail=1024&format=webp)
E-mail validation regex example in Perl and Ruby [https://emailregex.com/](https://emailregex.com/)
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. 🙃
![programmerhumor](https://lemm.ee/api/v3/image_proxy?url=https%3A%2F%2Flemmy.ml%2Fpictrs%2Fimage%2Fc0ed0a36-2496-4b4d-ac77-7d2fd7f2b5b7.png?format=webp&thumbnail=48)
![](https://lemmy.zip/pictrs/image/f2150212-f4a5-473f-8263-ce45876f39a1.webp?thumbnail=1024&format=webp)
cross-posted from: https://lemmy.zip/post/24335357
![programmerhumor](https://lemm.ee/api/v3/image_proxy?url=https%3A%2F%2Flemmy.ml%2Fpictrs%2Fimage%2Fc0ed0a36-2496-4b4d-ac77-7d2fd7f2b5b7.png?format=webp&thumbnail=48)
![](https://lemmy.world/pictrs/image/bd19730a-172d-4cf2-939a-02cb0bab2b9b.png?thumbnail=1024&format=webp)
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
![](https://lemmy.ml/pictrs/image/d02eac19-0697-4d57-bae8-8bf6c6f1346e.jpeg?thumbnail=1024&format=webp)
![programmerhumor](https://lemm.ee/api/v3/image_proxy?url=https%3A%2F%2Flemmy.ml%2Fpictrs%2Fimage%2Fc0ed0a36-2496-4b4d-ac77-7d2fd7f2b5b7.png?format=webp&thumbnail=48)
![](https://lemmy.world/pictrs/image/e09b49ca-3799-47f3-a73f-a4bb03b4a92b.jpeg?thumbnail=1024&format=webp)
This happend to me right noww as I tried to write a gui task manager for the GNU/Linux OS
![programmerhumor](https://lemm.ee/api/v3/image_proxy?url=https%3A%2F%2Flemmy.ml%2Fpictrs%2Fimage%2Fc0ed0a36-2496-4b4d-ac77-7d2fd7f2b5b7.png?format=webp&thumbnail=48)
![](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)
![programmerhumor](https://lemm.ee/api/v3/image_proxy?url=https%3A%2F%2Flemmy.ml%2Fpictrs%2Fimage%2Fc0ed0a36-2496-4b4d-ac77-7d2fd7f2b5b7.png?format=webp&thumbnail=48)
![](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)
![](https://lemmy.world/pictrs/image/c031911c-61a6-49b5-9d84-caf09ed3ab31.jpeg?thumbnail=1024&format=webp)