Hi Eddie! Does EarlyAI look at your code and assume your intent and code is correct? Is there a danger that the AI simply entombs your bugs in the tests? Writing your tests first is a super important part of explaining your intent to other developers (and your future self). Why not start by telling the AI what you want the application code to do and ask it to write the Unit Tests, then when you've sanity checked the tests, get it to write application code? This also has the advantage that since there is no implementation when you write the unit tests, your unit tests test behaviour, not implementation.
@eddiejaoude7 күн бұрын
Great points Greg! TDD is important, it is possible to use AI as we go along - I didn't try it yet, but I will give it a go. Even adding the tests afterwards it did find bugs in my code which I was honestly surprised about because I did think I had manually tested it well - I think it was good for me to be reminded that manual testing only goes so far.