Summary: Using AI like ChatGPT can boost your coding productivity by helping with small, well-defined tasks. Always test and verify the code it generates to ensure it works correctly. Remember, AI is a tool to assist you, not a replacement for your programming skills.
Use "What is wrong with this code?" as a prompt (View Highlight)
I will often feed blocks of code, especially regular expressions generated by the AI, to the AI. It can be very instructive to see what the AI thinks is wrong with the code, often highlighting error conditions that the code doesn't test for. Then, of course, ask the AI to regenerate the code fixing the errors it found. (View Highlight)