If I come across code like this: Chances are, I'll refactor it to this: I tend to put functions as close to the left side of the screen as reasonably possible. By that I mean, I like to reduce nesting of closures. A closure is what is created when…...