3 ms·
> 3. Solving problems when you're stuck: When I feel stuck with a problem or an error message, ChatGPT has proven to be an invaluable resource. Even when the an
by freitasm 3y ago
> 3. Solving problems when you're stuck: When I feel stuck with a problem or an error message, ChatGPT has proven to be an invaluable resource. Even when the answer it gave was wrong, a little hint in there was enough for me to find the solution I needed.
> 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.
- mmh0000 3y ago>> I've asked ChatGPT to write a VBScript function that returns false if the input is true and false if the input is false. <insert to-be-fair meme here> You purposefully asked GPT a trick question for which it likely has very little training data. No one would ever go on StackExchange et al. asking how to write a function that always returns false. So GPT had to take its training data on other, realistic questions and fumble something together. A GPT can only ever be as good as its initial training material. It can not have new ideas or innovations. There was an excellent post here a couple of days ago to an article, which explains quite well what a GPT can and can not do and why: https://explainextended.com/2023/12/31/happy-new-year-15/ https://explainextended.com/2023/12/31/happy-new-year-15/ EDIT. GPT4 was happy to give me a one-liner that meets the conditions and even explains why my request was dumb: https://chat.openai.com/share/1d949b5b-3c2b-4634-802e-3ea4c2a7a786 https://chat.openai.com/share/1d949b5b-3c2b-4634-802e-3ea4c2...
- fragmede 3y agoThat's GPT-3.5. GPT-4 manages to identify that the function always returns false and even names it AlwaysFalse. It doesn't do well on trick questions, but that's a bit like calling someone stupid because they can't tell you the number you're thinking of. Use the right tool for the job. Instead of trying to prove it's dumb and therefore useless, ask it questions it can do well at. It really doesn't do well with trick questions. If you ask it the river crossing problem but the boat is big enough to bring all the items, it insists on taking multiple trips. But that's okay. Because of AI we have to develop a more nuanced view of intelligence. previously, you could just place people on a 2d spectrum from dumb as a door nail to frighteningly smart. Now, because we have these things that are impossibly smart compared to a human in some dimensions but not in others, we have to give that 2d scale a lot more dimensions. Which always existed before, but most of us aren't cognitive psychologists.