64
top 9 comments
sorted by: hot top new old
[-] abclop99@beehaw.org 7 points 3 years ago
a = a ^ b
b = a ^ b
a = a ^ b
[-] MyNameIsRichard@lemmy.ml 2 points 3 years ago

Using an organic processor

[-] Crackhappy@lemmy.world 1 points 3 years ago

Never used Python but that's hilarious.

[-] jnovinger@programming.dev 1 points 3 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

[-] pec@sh.itjust.works 1 points 3 years ago

Storing the value in the user instead of RAM!

[-] softhat@lemmy.world 1 points 3 years ago

This actually raises a very good question - could you increase the amount of available RAM by using the user?

Juggling chainsaws comes to mind.

[-] bauklotz@feddit.de 1 points 3 years ago

Version 3 is disgusting.

[-] pewpew@feddit.it 1 points 3 years ago

So you are asking the user to do it

[-] branchial@feddit.de 2 points 3 years ago

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

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

Programmer Humor

43349 readers
3 users here now

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

Rules:

founded 7 years ago
MODERATORS