kind of tempted to reflash my roomba’s firmware so that it plays a recording that says “BOOP” whenever it gently runs into something and “BONK” whenever it runs into something hard
KK7DG
@thebaldgeek I mention because from what I've seen ChatGPT is exceptionally good at answers that look correct and fairly poor at correct answers (at least involving code). It is a language model and thus has no concept of correctness so this is expected.
Tests. Sample input with the known expected output, paying particular attention to corner cases, as this is where the model is most likely to break down.
Tests should answer whether the code is accurate without needing to understand the code.
Thanks for the hint, works!
https://twitter.com/harx/status/1604486393220435970