3 ms·
As the article says, reproducibility is important. If I have a bug on one run, I want to get that bug again on the second run. I want to be able to run the prog
by zarzavat 2y ago
As the article says, reproducibility is important. If I have a bug on one run, I want to get that bug again on the second run. I want to be able to run the program again and again and have the same breakpoints hit in the same order with the same variables. If I run tests, I want them to give the same results each time.
Randomness is bugs. Adding randomness to a language is adding bugs.
- dwattttt 2y agoYou can't avoid randomness and entropy, it's just something that's needed in too many places. For test repeatability though, whatever seeds a test run uses should be saved in order to repeat that test exactly. Best of both worlds: you get to cover weird bugs that only show up when stuff is in a certain order, and you can repeat the tests exactly.