2 ms·
Are you implying that a long call stack is better than a long function? At least you don't have to have a debugger to read the long function.
by Arelius 10y ago
Are you implying that a long call stack is better than a long function? At least you don't have to have a debugger to read the long function.
- matthewmacleod 10y agoLong 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!