Seeking Advice on Improving Effect Code Structure and Readability

would love to get advice on the following effect code/how i can improve it. still pretty new to this, i noticed that once i start introducing other modules that produce effects that other effects depend on, especially if iterating, my code gets pretty messy. off top of my head, solution is extract into smaller functions, but otherwise this looks somewhat tough to read. not sure if there are any better practices
Was this page helpful?