10 ms·
> If you have potentially a problematic computation, put it in a variable and log it out My point was: what a "potentially problematic" computation is is not a
by vanschelven 2y ago
> If you have potentially a problematic computation, put it in a variable and log it out
My point was: what a "potentially problematic" computation is is not always known in advance. A style which is rich in local variables, when combined with a tool that shows actual values for all local variables when unhandled exceptions occur gives you this "for free". I.e. no need to log anything.