[dead]
Sorry I'm late here, but obviously you can't post like this. We've banned the account.
Please don't create accounts to break HN's guidelines with.
You spelled it wrong!
Ruby’s approach is the most delightful, I find. elf is an instance of Elf and in elf.health, self is the elf.
Elf is an instance of Class and in Elf.surpass, self is the Elf class itself.
Ruby's irregular syntax drives me crazy. But it is beautiful.
Re:OO in Python is mostly pointless
by staticautomatic on Wednesday January 27, 2021 @11:32PM
(#25938210)
I gotta say as a Python developer I kinda like this compared to thing = Thing()