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.
[ Parent
| on HN ]
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.
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.
>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.