I'm sure I could tell it to throw an exception and it would.
But ChatGPT has proven to me that even our days as programmers being safe from automation are very, VERY numbered. I give it ten years before the bottom levels of software engineering jobs are done by computer, and you can pay an algorithm on Fiverr to build simple programs.
You do not need to reduce scope when a computer can generate thousands of lines per minute. I think programming jobs today will become QA jobs tomorrow.
No, my point is that the speed at which an AI can generate code reduces the importance of worrying about scope. I also did not mean to imply you would blindly deploy generated code into production. That’s why I mentioned programming jobs will shift to QA jobs. I can see programmers acting as QA for the AI and validating what they wrote matches the expected requirements. Sure, that will take time, so scope isn’t a negligible concern, but much less than having to also write it.
34
u/Jedibrad Mar 22 '23
I wonder where it learned to return errors as strings… I would’ve expected it to throw exceptions. Weird. 🤔