this post was submitted on 22 Jul 2025
450 points (97.3% liked)

Programmer Humor

25425 readers
904 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] eager_eagle@lemmy.world 81 points 1 week ago* (last edited 1 week ago) (11 children)

nah, I'm never complaining about self in Python after having tried the this and that nonsense in JS.

oh, you're using a named function instead of an arrow fn? Guess what, this is not what it used to be anymore.

[–] kayohtie@pawb.social 29 points 1 week ago (5 children)
[–] eager_eagle@lemmy.world 30 points 1 week ago* (last edited 1 week ago) (1 children)

it's common practice as a workaround to save this when changing contexts, since this may change under you, in callbacks and such

[–] Johanno@feddit.org 2 points 1 week ago

Kotlin:

this@outerFunction.bla
load more comments (3 replies)
load more comments (8 replies)