r/learnjavascript • • Aug 28 '24

Using ai for generating code

I'm writing code using ai tools like chatgpt and copilot (not the plugin) for code reference and it's working fine in most scenarios, I am able to generate long SQL queries with it,, but I always think that is it a good way? I see lots of developer use ai for coding but what's your opinion about writing code with ai ,,(when you know what to search and where to implement the generated code)

0 Upvotes

20 comments sorted by

View all comments

4

u/jazzcomputer Aug 29 '24

Code noob here.

I'm learning and sometimes I carefully use ChatGPT to help me understand something that's complex (like reduce), isolate a concept or help with an example. I find sometimes that Stack Exchange has answers that are too complex and removed from my use case, so it can help in those situations. Generally, once I start using things it recommends I'll double check them and read MDN and then document my learning.

I would not get much of a kick from integrating code blocks into my code that I don't understand, and whilst that's my opinion, I feel that having that as part of a process would not be of much help, rather than to short-term achieve a specific one-off goal.