Hacker News new | ask | show | jobs
by yodsanklai 868 days ago
Typical use, I need to write a script or bit of code for a language I'm not super familiar with. Examples: write a bash script that tests this and that. Write a unit tests in python for this function. How can you do this idiomatically using the C++ stdlib.

Less common: code transformation. I have this json output and I want to turn it to a different format without bothering writing a script. I give chatgpt a few examples of the transformation, and have it done for the rest. I'll still have to fix it but it can save me a bit of the time.

And finally, when I stumble on an API I don't know anything about, I can get a better grasp by asking ChatGPT some questions about it.

Again, not life changing or even a huge productivity booster, but it helps. Also, it's good to know when ChatGPT isn't going to help and avoid losing time.