As a developer, what techniques have you found most effective for getting ChatGPT to finish incomplete code snippets accurately, and how do you handle any limitations or errors that arise during the process?
2 Likes
To get ChatGPT to finish incomplete code snippets accurately, ask it to identify the context and provide a step-by-step completion. For teaching, start by having ChatGPT assess your understanding level with specific questions about the subject. Then, tailor the lesson based on your identified expertise level for better relevance.
2 Likes
Ask it to continue from the last paragraph or, the final line. A simple “Continue from the last line” command should suffice.
1 Like
I’ve only discovered that the following works to get beyond the persistently incomplete responses:
Close out line 71 of the code. Never print more lines than 71.
Naturally, you can substitute line 71 with any relevant line from your project.