3 ms·
In some ways at least, you can look at data science / ML work as an extreme form of TDD and closer to it in spirit than most proselytizing I've come across. In
by sriku 8y ago
In some ways at least, you can look at data science / ML work as an extreme form of TDD and closer to it in spirit than most proselytizing I've come across. In another great example, Peter Norvig does way more TDD for his Sudoku solver [1] than a "textbook" attempt at it [2] ..like many orders of magnitude more testing when counting cases. The spirit is better if we try to answer the questions of "what do you know about your program" and "how do you know it" through code.
[1] http://norvig.com/sudoku.html http://norvig.com/sudoku.html
[2] https://xprogramming.com/articles/oksudoku/ https://xprogramming.com/articles/oksudoku/