2 ms·
Long call stacks are better than long functions, yes. If a function runs on for more than a few lines, it feels like it rapidly becomes more difficult to reaso
by matthewmacleod 10y ago
Long call stacks are better than long functions, yes.
If a function runs on for more than a few lines, it feels like it rapidly becomes more difficult to reason about it. More mental overhead is required and more moving parts are in scope.
Long stack traces might mean you have to read more whole debugging, but it also means there is less code to debug for a given failure - assuming modularity!