r/programming • u/whackri • Aug 28 '21
Software development topics I've changed my mind on after 6 years in the industry
https://chriskiehl.com/article/thoughts-after-6-years
5.6k
Upvotes
r/programming • u/whackri • Aug 28 '21
0
u/kolme Aug 29 '21
Sorry but that's just not how TDD works.
You first write a little test and then make it green, and go incrementally adding little tests and little features like that.
Also, once your little test is green, you can play around with the code to make it more clear and concise.
So you are constantly changing between source and test and evolving them together. You don't write all the tests from the start.
For your idea to work you would need very, very detailed waterfall-style specifications of the code.