2 ms·
TDD and 'Discipline'
- PaulHoule 4y agoFrom my POV, unit tests can play a role in Java development similar to screwing around with the REPL in Python. That is, if you have questions about how things work you can do experiments easily with unit tests and look at things with the debugger. The immediacy is a little less than with the REPL because the IDE has to sometimes do an incremental build but it isn't much less. With the REPL your work just scrolls off the top of the screen and is lost. If you are writing unit tests experimentally you have your fun and then you have unit tests to check in when you are done.
- chatterhead 4y agoYou need to define acronyms before you start using them. This is just polite to do irregardless of how you view your audiences' knowledge.
- lamontcg 4y agoI've submitted PRs with many more LOC devoted to tests than shipping code. Am I doing TDD? Most of the articles that I read about TDD doesn't describe anything like what I tend to do though, and I usually don't sit down to write narrowly focused unit tests these days (although every now and then I do).