3 ms·
Am I expecting too much from it? Hard to say. Am I using it wrong? Maybe? I think we're all still trying to figure out the best way(s) to use this stuff righ
by mindcrime 4y ago
Am I expecting too much from it?
Hard to say.
Am I using it wrong?
Maybe? I think we're all still trying to figure out the best way(s) to use this stuff right now.
Just for the sake of illustration, here's a recounting of my recent experience using ChatGPT for code:
I've only tried it once on a coding project of any substance, but it did work well enough that it definitely saved me a meaningful amount of time. Probably on the order of an hour or two.
The project was concerned with transferring a bunch of my Github repos en-masse from one organization to another, using the REST API. I could have code that up mostly in my sleep, but I decided to try ChatGPT as an experiment. My initial prompt was something like:
"Write me some Java code to transfer a Github repo from one organization to another, using the REST API. Please use Apache HttpClient."
The code I got was pretty close to what I needed, although I think I did have to prompt it to tweak the code once or twice. One was asking it to add code to use a Personal Access Token as an Auth header.
So in the end, it generated most of the code I needed, and it represented a meaningful time savings, just based on the time it would have taken me to type the code in, plus I'd have had to consult the GitHub REST API docs at least once or twice to lookup endpoints, parameters, etc.
Can it do much more than something like that? I have no idea. But for dealing with fairly generic, boiler-plate'ish code like that, I find it useful enough that I'll probably continue to experiment with it.
YMMV, of course.