This sounds perfectly reasonable in isolated examples, but I find maintaining large applications written in this style to be a nightmare. Once you get to non-trivial examples you'll have a lot of variable being passed around (what are we adding the scrollbar too) and stepping through a million little functions to see which components are interacting and how.
The first example might need a comment, but everything I need to know is right there in one place and not distributed across the codebase.
The first example might need a comment, but everything I need to know is right there in one place and not distributed across the codebase.