News for hackers. Stuff that matters.
Re:Why Isn't Debugging Treated as a First-Class Activity? by mirceal on Wednesday July 11, 2018 @10:08AM (#17506995)
I think that, while this might work, the approach to managing state and writing the tests is not ideal. For one, your tests should be fast (ie you should be able to rerun them with almost 0 time penalty and see the results instantly). Second, if it’s easier to stop the flow and look at the state / modify the state than looking at what the state should be via the test setup it’s possible that the abstractions you’re using are not quite right and/or the code is tightly coupled.
Re:Why Isn't Debugging Treated as a First-Class Activity? by jlg23 on Wednesday July 11, 2018 @11:11AM (#17507532)
> I think that, while this might work, the approach to managing state and writing the tests is not ideal.

I strive to not manage state but to write purely functional code, it makes life so much easier - see your second point as an example :)