476
Object oriented programming in Python be like:
(media.piefed.ca)
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.
nah, I'm never complaining about
selfin Python after having tried thethisandthatnonsense in JS.oh, you're using a named function instead of an arrow fn? Guess what,
thisis not what it used to be anymore.Wait there's a "that"???
Only if you define it.
const that = thisI remember that a long time ago. Oh god
I remember this too... what a nightmare.
it's common practice as a workaround to save
thiswhen changing contexts, sincethismay change under you, in callbacks and suchKotlin:
Oh, you assigned a method to a variable before calling it? Congratulations,
thisis nowundefined.Yes. There's no telling what
thisis.thiscould be anything. We tried to keep track ofthis, but no one knows whenthiswill change.I used to be with
this, but then they changed whatthiswas.Now what I'm with isn't
this, and what'sthisseems weird and scary to me.This'll happen to you!
Yeah totally agree.
As a non-programmer who's occasionally dabbled with wxPython, I've entangled myself with self.parent.parent and their childs/siblings more than once. At that stage I know my project is done.