← Back to context

Comment by persedes

3 years ago

chatGPT works surprisingly well for python (and am sure other popular languages too). I can dump a code bit and tell it to write the tests + fixtures for me. The tests it wrote actually showed it "understood" (or recognized the pattern of) the code too. For example part of the code renamed some columns for a data frame that was loaded from a csv. The fixture it created for the csv had the correct column names the code was renaming.

Unless you're doing TDD or chatGPT is too busy, there's almost no excuse now to not write some unit tests ;)