this post was submitted on 12 Jun 2023
64 points (98.5% liked)

Programmer Humor

32410 readers
1 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 6 comments
sorted by: hot top controversial new old
[–] abclop99@beehaw.org 5 points 2 years ago
a = a ^ b
b = a ^ b
a = a ^ b
[–] bauklotz@feddit.de 2 points 2 years ago

Version 3 is disgusting.

[–] pewpew@feddit.it 1 points 2 years ago (1 children)

So you are asking the user to do it

[–] branchial@feddit.de 1 points 2 years ago

What do you think captcha is other than computers manualizing tasks.

[–] MyNameIsRichard@lemmy.ml 1 points 2 years ago

Using an organic processor

[–] jnovinger@programming.dev 0 points 2 years ago

I raise you

@lambda _: _()
def result() -> int:
    global a; global b; a, b = b, a

hat tip to @sisyphean@programming.dev via Cursed Python