Viewing a single comment thread. View all comments

oddonebetween t1_j0rdxze wrote

It's really inconsistent with code. I've given it a few snippets of code and it never gives a fully correct answer. It's terrible at connecting things. Haven't had much luck with it with React Redux and that's all about connecting the state.

3

4e_65_6f t1_j0rf0hq wrote

I found that it works better if you keep it short, like tell it to write just a function or a small part of the code rather than the whole thing. Also explain in obnoxious detail what is supposed to be happening and it often gets it right.

It's really good at improving already written code also, I used it to make my code shorter and more efficient.

3

BinaryMan151 t1_j0tem1w wrote

I tested it and asked it to write a loop counting down from 10 - 1 in C++ and it did it perfectly. It created a for loop and the code was there. It even instructed me how to run the program.

1

RichardKingg t1_j0rjk30 wrote

I was using davinci-03 and switched to ChatGPT, I feel it is better at throwing some good results (I'm programming with JavaScript).

I even asked it to create intermediate exercices for module patterns and it definitely nailed it, I suppose it has a lot to do with prompts and how long is the code you are feeding it.

2

oddonebetween t1_j0tpc39 wrote

I'm also programming with JavaScript. Yeah it's good for really short functions but that's about it in my experience. But I'll try improve my prompts.

1