You can't understand my pain

147 points · 15 comments · view on lemmy.world

15 Comments

graphite@lemmy.world · 39 pts · 2y (3 replies)

wym just

def piss(): pass

substitute accordingly 🤙

egeres@lemmy.world · 22 pts · 2y (2 replies)

Now that I think about it, you can just write piss and it counts as writing a variable but not assigning it 🙃 (after having assigned piss at the beginning of the code!)

GitProphet@lemmy.sdfeu.org · 19 pts · 2y (1 reply)

So you're saying we just have to piss at the very beginning of the code?

egeres@lemmy.world · 10 pts · 2y

I bet this was in the original draft of the PEP-8 hahah

Asudox@lemmy.world · 19 pts · 2y (2 replies)

def piss(): pass; piss = piss()

Here you go.

egeres@lemmy.world · 8 pts · 2y (1 reply)

But actually, You can just replace that line with piss = None, assigning piss = piss() does not invoke the former method when writing the new variable "standalone"

Asudox@lemmy.world · 1 pts · 2y

Oh well.

rikudou@lemmings.world · 17 pts · 2y (7 replies)

You can use the C preprocessor on any source code.

marcos@lemmy.world · 4 pts · 2y (6 replies)

Or m4 if you are into it.

M4 + python would make for a great combo.

muzzle@lemmy.world · 4 pts · 2y (5 replies)

Please don't.

marcos@lemmy.world · 1 pts · 2y (4 replies)

But...

What is more pythonic than semantic whitespace?

muzzle@lemmy.world · 1 pts · 2y (3 replies)

Preprocessing source code is an awful idea and I wish it never became widespread.

I used to hate semantic whitespace, but I came around when I was using it anyway.

marcos@lemmy.world · 3 pts · 2y (2 replies)

Oh bummer... I was so glad believing somebody understood the m4 joke.

Text preprocessors for code are awful. But the m4 + python combo is so full of landmines that I'm wondering if I should try it.

muzzle@lemmy.world · 2 pts · 2y (1 reply)

I can only defend myself with the good old "it is impossible to write a Y̶o̶u̶T̶u̶b̶e̶ Lemmy comment stupid enough that everyone will realise it is ment to be sarcastic"

marcos@lemmy.world · 2 pts · 2y

I would say that one should expect a high probability of comments on "Programmer Humor" being sarcastic. But deep down I know you are right.