Code pairing with chatgpt
Michael Durrant
Playwright enthusiast and Automation Architect with experience in unit, integrated and end-to-end automated testing for in healthcare, manufacturing and banking. Accessibility advocate for inclusive experiences.
I recently realized an interesting development for my code writing:
I am now frequently pairing with chatgpt to write my code. In fact writing code without chatgpt is rapidly becoming like programming in the days before Stack Overflow - without some way to help you when you get stuck you spend a lot of frustrating time in that state.
Now, when I get stuck with code, I ask chatgpt about it. The interesting thing is just how varied my 'stuck' situations can be. Here are some examples:
The list is truly is endless. Essentially any time I am 'stuck' I try to use chatgpt to help
This requires an interesting skill - asking a good question.
This requires providing enough (but not to much!) information and phrasing the question in a way to give me what I want. Sometimes this means including a bunch of files. Sometimes this means providing the minimal reproducible example - yeah chatgpt gets that too ;)
The answers from chatgpt are fantastic in that they often suggest things to try, provide reasons for why you are seeing what you are seeing and the reason for it and the reasons for writing the code differently. Just like chatting with a human coding pair, but less code switching for the neuro diverse ;)