LOADING: An error occurred. Update Chrome, try Firefox, or visit this post for more details.

⚠️Reddit changed how removals work, which breaks Reveddit's website. Install the extension to track removed content:Add to chromeAdd to firefoxWhat changed?
✖︎
about reveddit
⚙F.A.Q.add-ons
r/
status
copy sharelink
[+] show filters
7
Help/QuestionOOP vs Functional(self.adventofcode)
submitted 2 years, 10 months ago by [deleted] to /r/adventofcode (134.8k)
43 commentsredditother-discussionssubreddit-indexmessage mods

I have been dabbling in Python for some time now and have written some really easy apps. But I alway...

... view full text

since 2 years, 10 months ago
2 of 2

Tip Reveddit Real-Time can notify you when your content is removed.

your account history
(check your username's removed content. why?)
Tip Check if your account has any removed comments.
view my removed comments
you are viewing a single comment's thread.
view all comments
[–][deleted]6 points2 years, 10 months ago

No, an orange.eat method would make sense unless it was an animated orange.

A tree could, maybe, have an eat method, which could deplete the soil from nutrients. Then, yes, maybe the orange could have an eat that ate from the tree, but probably an overkill.

permalinkparentcontexthide replies (1)as-of
[–]imp0ppable3 points2 years, 10 months ago

To clarify, in theory you can do it either way, human.eat(orange) etc but what you see is classes with the interesting methods declared on the object it happens to. UI programming is rife with this stuff.

In any case the orange isn't really an interesting object type in itself. You can say well, it's a fruit but what does that even mean? A strawberry is a fruit (or is it) but you don't need to peel it. They both grow on plants but that's not really relevant. It's a philosophical argument about objects, categories, attributes etc that is above most people's pay grade, basically.

What about clementines, mandarins or tangerines?

Really an orange is just an orange because we all agree it is, due to the fuzzy computational ability that our brains have but computers don't. The code can treat something like an orange but it doesn't really matter if it's a lemon, except it might taste funny after you peel it and eat it. That's more like duck typing.

permalinkparentcontextauthor-focusas-ofpreserve
r/revedditremoved.substack.com
🚨 NEWS 🚨
✖︎

Important: Reddit Changed How Removals Work

A recent Reddit update makes mod-removed content disappear from profile pages, which breaks Reveddit's website.

Install the browser extension to receive removal alerts.

Add to chromeAdd to firefox

What changed?

r/revedditremoved.substack.com