Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
"Subtle errors" understates the problem. For example, I asked it about uses for std::equal_to, and it tragicomically gave me a code sample passing std::equal_to as the comparison predicate to std::...
Answer
#1: Initial revision
"Subtle errors" understates the problem. For example, I asked it about uses for std::equal_to, and it tragicomically gave me a code sample passing std::equal_to as the comparison predicate to std::sort. No more citations?! I loved that feature! I would be inclined to favor replies where someone took the ChatGPT output and ran it in a debugger before posting. Another option would be to ask it to check its work. I tried the obvious nonstarter of asking "Does this code have a bug?" and pasting in the code sample it had provided. It was obvious that wouldn't work, but it did. ChatGPT explained that its code sample was wrong and explained exactly why. One angle on this is that a person with a question can simply run ChatGPT if that's good enough, and that person will only have come here if there's a need for something better.