Re:Ask HN: Refactoring a BASIC Blackjack Game from the 70s
by akamaka on Friday May 27, 2016 @07:48PM
(#11789877)
If I were to refactor this code, I'd first make a good set of automated tests, by recording the input and output of a series of games. If you go through many stages of refactoring, these tests will save you a lot of time.
[ Parent
| on HN ]
There are no comments on this comment yet.