4 ms·
Of course not! The Power of AI™ can figure out the true intent of the code by looking at the initial (and, potentially, buggy) implementation, and help the pro
by romwell 3y ago
Of course not!
The Power of AI™ can figure out the true intent of the code by looking at the initial (and, potentially, buggy) implementation, and help the programmer by generating edge test cases where the code doesn't produce correct results.
The programmer will easily tell those test cases from the ones where the AI did a mistake and generated a flawed test case because the AI doesn't make such silly mistakes; clearly, it's the programmer's code that needs to be corrected.
In fact, the AI would do a better job at that, too, which clearly speeds up the development cycle.
The correct way to use the tool is to let the AI both generate the test cases and modify the code so that it would pass the tests it generates.
After all, if the AI can't figure out what you wanted to do in the first place — how can you?
Of course, there's more to it.
Whichever problems you run into can be surely attributed to writing the code in an AI-unfriendly way.
In the past, we had the adage that the code is read more times than it's written. This is still true, but we need to abandon the old habit habit of having a human reader in mind.
Just like you rearrange your furniture to make your house more accessible to the robot vacuum cleaner, you need to write the code with the AI in mind.
When you write a Google query or a prompt for ChatGPT (effectively the same thing anyway), you don't write it like you'd talk to a person.
You're going to have to write code the same way to be truly effective, and think a little bit like AI to get the most use out of it.
That might sound like a lot of work to get code that does what you want.
But of course, that's not the case.
Just use the AI for this.