> 4. Generating functions you're too lazy to write: Often, you know how to write a function but you're too damn lazy to write it. Eg, use axios, go to this URL, get the contents and write it to CSV. Writing a function to do this feels like a chore. ChatGPT is a helpful assistant in this case.
A friend swears by it and has whole single-page sites written by chatGPT in his internal lab.
Just to test your point, I've asked ChatGPT to write a VBScript function that returns false if the input is true and false if the input is false.
It wrote a seven-line function testing true, false and otherwise (clever, testing for null).
I would have just written a function to return false - one line that covers all conditions, including null. There is no testing, so it uses fewer CPU cycles.
So that's my rational: yes it can be used but don't just take the results at face value.