6 ms·
> in practice I found there's just too many debugPrint() lines cluttering the code On this particular aspect - I find that log lines can do double-duty as code
by loganhood 4y ago
> in practice I found there's just too many debugPrint() lines cluttering the code
On this particular aspect - I find that log lines can do double-duty as code comments. When I see some comment that explains the what-and-why of a section of code - "// We also need to check the Foo state for consistency before committing Bar" - I might actually change it to a log line like - "Verifying state of Foo ${foo.id} before committing Bar ${bar.id}".