3 ms·
You can "just" do any of those things but code that is understandable without a debugger is strictly better than code that requires a debugger to grok. > "It's
by dns_snek 3y ago
You can "just" do any of those things but code that is understandable without a debugger is strictly better than code that requires a debugger to grok.
> "It's harder to test" -- so mock it in the tests.
This however doesn't make sense, you can't "mock" state - the state and its side effects is what you're testing.
- pdntspa 3y agoI guess it depends on the specific language but in my experience one can mock nearly anything the code references