r/shittyprogramming • • Oct 27 '22

Lets see if the snake eats itself.

ouroboros = dict()
ouroboros["ouroboros"] = ouroboros
#godluck, dogspeed, and I'll see you on the other side
print(ouroboros)
99 Upvotes

10 comments sorted by

23

u/IlliterateJedi Oct 27 '22

Congrats on inventing self

9

u/IIAOPSW Oct 27 '22

Really, its up to you how you should define self.

5

u/[deleted] Oct 27 '22

Since all functions are a function of self, how can you be sure something exists that is not self?

Maybe everything is just self, and there is only an illusion of things not self.

2

u/IIAOPSW Oct 28 '22

Even though all functions are bound to self, there are still constraints on how I can invoke them which act exactly as if the parent scope is real. As I have not yet figured out how to privilege escalate myself to god/admin powers, there is no meaningful or detectable sense in which all functions are functions of self. For even if I am technically supposed to have the keys, I am still just as much a prisoner of this reality as the rest of you.

If reality is real then it is real. If reality is all in self and I can never escape then it is still real to me. Therefore, even though every function could still turn out to be part of self, I may as well stop questioning the inscrutable back-end and accept the truth presented in the front-end.

2

u/[deleted] Oct 28 '22

What if reality is only self?

There is no admin, only self.

There are no web service calls, fetch just fetches self.

→ More replies (1)

30

u/[deleted] Oct 27 '22

[removed] — view removed comment

46

u/IIAOPSW Oct 27 '22

I pity d['foo']