Went back to documenting the freaky codebase that is basically one big megastructure built out of an endless series of functions that define and return functions that get assigned to variables and called later and God every paragraph I type I feel bad because no matter how many different approaches I take in explaining it ultimately the code is confusing to understand and I can only minimize, not eliminate, that confusion.
There is a function that takes in two different functions, and those functions are defined in-place as parameters to the function, and one of the functions is 200 lines long, and its body calls a function that was defined and returned by another function earlier on, and none of this is actually executed until it’s packaged up and passed back up two levels higher.
I actually split the document in half. In the first part I go over the freaky architecture and in the second half I go over what all of this actually does once it’s finally executed. I tried talking about both simultaneously and it made zero sense.
