|
|
|
|
|
by peterangular
1159 days ago
|
|
> Trying to get some non-trivial code out of GPT that isn't a mindless boilerplate For some of us, the boilerplate code generated by ChatGPT is incredibly valuable. I have been utilizing it to create snippets of code for languages that I am not familiar with in terms of syntax. I understand that I may be criticized for this, however, I am not an expert in all of the languages I am required to support. Thus, I often find myself struggling with the syntax while understanding the overall concept I am attempting to accomplish. Example prompt: "Write me a proof of concept in language X that serializes JSON then POSTS to a HTTP API endpoint." |
|
Continuing with the theme of your example, at least in my experience most of the programmer's time is spent on figuring out which endpoint do you need, why and when does that endpoint sometimes return something you don't expect and how to deal with that happening. Writing JSON serializing in a language your head got rusty with may be faster with ChatGPT than it would be otherwise, but the overall benefit seems negligible, especially when you need to watch out at every step for convincingly-looking nonsense.