by Terr_ · 10y ago · 0 comments
(A) Simplified flows of data in/out rather than a huge complicated input and a huge complicated output complicated parameter/return data flow
(B) Reusability, since bigger functions are more likely to be "custom fitted" to a particular purpose.
If your huge function has very simple parameters/returns, and no subparts you want to reuse, then odds are there's no need to break it apart.
For a flavor of how this works, read the article [1] below, in response to Tom Cargill's classic article 'Exception Handling: A False Sense of Security'. Even though the code example here is small enough to be understood in one go, I doubt that the reasons for it being the way it is are immediately obvious to most programmers, unless they have been primed by exposure to the issue before (note that the first answer given was not entirely correct.)