Genesis icon indicating copy to clipboard operation
Genesis copied to clipboard

God object

Open AbrahamSanders opened this issue 3 years ago • 3 comments

Since Genesis is God's actual programming language, it should be fairly straightforward to create a God object (or, since Genesis is not object-oriented, a God method). I believe this would make a useful addition to the examples.

AbrahamSanders avatar Aug 08 '22 18:08 AbrahamSanders

What would God represent here?

tomyo avatar Aug 08 '22 21:08 tomyo

An all knowing, all-encompassing entity that does everything.

Because this object holds so much data and requires so many methods, its role in the program becomes God-like (all-knowing and all-encompassing).

A "God Method" is a method that does way too many processes in the system and has grown beyond all logic to become The Method That Does Everything.

AbrahamSanders avatar Aug 08 '22 21:08 AbrahamSanders

Interesting proposal... I can see how something like this could be accomplished in Genesis by a composition of subroutines (i.e. a subroutine that contains several other subroutines and a singular call to one of them, followed by a call to the containing "parent" subroutine in the main scope), but I'm not sure what these routines would plausibly do. If you are talking about the actual source code, then I guess it could be refactored into such a method. I will do some pondering.

elonlit avatar Aug 09 '22 00:08 elonlit