Hacker News new | ask | show | jobs
by Karunamon 1243 days ago
Different use case I think. With chatGPT you write something like:

write a function using the python requests library which makes a get request to the URL example.com, parses the JSON response and returns the value of the "foo" field. Throw an exception if the get request fails, the response is not JSON or is invalid JSON, or if the foo field is not present in the response.

I just tried this and got a correct (and reasonable) function on the first try.

This kind of high level description to low-level implementation is a huge timesaver but it saves time in a different way than copilot.