JavaScript Test-Driven Development - D&D Character and Randomization

preview_player
Показать описание
We work on an Exercism exercise that forces us to grapple with random numbers. We see the problems with nondeterminism in tests. We find a solution by extracting the randomness, allowing us to specify the exact rules. We design an interface that makes the test easy to understand in light of the requirements.
Рекомендации по теме
Комментарии
Автор

This was highly informative. Especially enjoyed the ||= operator. Subscribed for notifications. Thank you.

SeanGoresht
join shbcf.ru