News for hackers. Stuff that matters.
Re:OO in Python is mostly pointless by GeorgeTirebiter on Wednesday January 27, 2021 @08:19PM (#25936829)
for my own code, I use 'me' instead of 'self'. Just makes more sense to me; e.g. me.variable that is, the one referenced right here ('me') is being referenced, not from anywhere else. It's also shorter; and I think more descriptive. But that's just me.
Re:OO in Python is mostly pointless by omaranto on Wednesday January 27, 2021 @08:41PM (#25936997)
me.variable sounds Irish to me, at least compared to my.variable.
Re:OO in Python is mostly pointless by thewakalix on Wednesday January 27, 2021 @10:09PM (#25937652)
And my.variable sounds Perlish.
Re:OO in Python is mostly pointless by KMag on Thursday January 28, 2021 @02:30AM (#25939184)
That's because Perl was intended (Larry Wall was trained as a Linguist) to somewhat mimic natural English.
Re:OO in Python is mostly pointless by lordgrenville on Thursday January 28, 2021 @06:54AM (#25940751)
That's a fascinating tidbit. You wouldn't exactly guess it from reading Perl.
Re:OO in Python is mostly pointless by athms on Friday January 29, 2021 @01:22PM (#25960518)
>Larry Wall was trained as a Linguist

Having an undergraduate degree doesn't make somebody a linguist. Let me know when he has contributed to the field through scholarly work. Doing Bible translations doesn't count.

Re:OO in Python is mostly pointless by randompwd on Friday January 29, 2021 @02:52PM (#25961551)
> me.variable sounds Irish to me

Only if you're used to the derogatory, clichéd "American TV" version of Irish.