4 ms·
> don't take away all the fun by starting with tests Depends what you're doing. For interactive programs, automated testing is more painful than just firing it
by pjc50 7y ago
> don't take away all the fun by starting with tests
Depends what you're doing. For interactive programs, automated testing is more painful than just firing it up and testing manually, at least at the beginning. For noninteractive systems it may be much easier to start with a test as a spec: "parse this file and produce this output".
- Nasrudith 7y agoReminds me of one unusual application of tests - working with inadequate or overadequate documentation (filled with many lines but difficult to find what you need) they work well as "scratch pads" for details which are unclear like "Does it return null or throw an exception when you attempt to remove something not in the collection?"
- pjc50 7y agoExactly. They can be a great form of "case analysis", and can also be translated back into business-analyst-speak or use cases.