this post was submitted on 22 Jul 2025
471 points (97.4% liked)

Programmer Humor

25282 readers
1449 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
[–] kayohtie@pawb.social 30 points 5 days ago (2 children)
[–] theit8514@lemmy.world 43 points 5 days ago (1 children)

Only if you define it.

const that = this

[–] mesamunefire@piefed.social 14 points 5 days ago (1 children)

I remember that a long time ago. Oh god

[–] Aurenkin@sh.itjust.works 6 points 5 days ago

I remember this too... what a nightmare.

[–] eager_eagle@lemmy.world 30 points 5 days ago* (last edited 5 days 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 4 days ago

Kotlin:

this@outerFunction.bla