Tips for better coding with ChatGPT
31–40 of 114 posts
Re: Tips for better coding with ChatGPT
#32> Trust but verify... Based on my own attempts to have ChatGPT generate code for me, it's better to NOT trust it. It tends to hilucinate even with simple requirements.
If you're already a programmer, there's no excuse for not working directly with the APIs. Learn about context and prosper.
Re: Tips for better coding with ChatGPT
#33Now nature.com gives “coding” advice? Is openai paying for such articles or are they bored?
0185 clickbait with absolut common advices. This could be written by ChatGPT.
Re: Tips for better coding with ChatGPT
#34Maybe I am just getting old but the idea of using a non-deterministic tool that can hardly be reasoned about that will straight up hallucinate facts for any professional work sounds insane to me.
Yes, I do see the value for Junior Devs as I am sure it can drastically increase their output in the short term but aren't they shooting themselves in the leg in the long run? That might sound elitist but at the end of the day, you will need to learn to read technical documentation anyway and once you understand it there is no need for ChatGPT.
Yes, if you are constantly hopping from one framework of the month to the next big thing, you just don't have the time to learn anything in depth and then again ChatGPT can help. But do you really want to live like this? Instead of band aid solutions we might want to push for less hype-driven and more pragmatic development styles that allow us the time to learn our frameworks.
Re: Tips for better coding with ChatGPT
#35Does anyone know if you can use Copilot with Gpt4 ? I already have gpt4 access but have not been able to approved for code interpreter hence I am still using chat to handle code tasks.
I can't remember what the other platform options are, but for VSCode you need to use a preview version, which has meant I haven't had much time to test it yet as I'm full on with the stable release.
But as an example I can select a block of code and ask it to generate tests, explain it or various other stuff. I haven't tried it further yet to see to what extent is provides value beyond just saving copying and pasting and establishing a context in ChatNormal.
It's not clear either that it is 4 as you requested; it may be the default 3.5, I've had a very brief look but couldn't see the spec.
Update, according to the Verge, its 4:
https://www.theverge.com/2023/3/22/23651456/github-copilot-x...
Re: Tips for better coding with ChatGPT
#36> Trust but verify... Based on my own attempts to have ChatGPT generate code for me, it's better to NOT trust it. It tends to hilucinate even with simple requirements.
If you're already a programmer, there's no excuse for not working directly with the APIs. Learn about context and prosper.
You mean other than the fact that it costs money?
Re: Tips for better coding with ChatGPT
#37What worries me is that I have seen people here more often commenting on the author's life, their academic or professional attributes instead of paying attention to the article.
Re: Tips for better coding with ChatGPT
#38I am absolutely disgusted by the idea of people using ChatGPT for serious coding work. Maybe I am just getting old but the idea of using a non-deterministic tool that can hardly be reasoned about that will straight up hallucinate facts for any professional work sounds insane to me. Yes, I do see the value for Junior Devs as I am sure it can drastically increase their output in the short term but aren't they shooting…
80% of the time, the suggestions are either too generic for our codebase and so has to be patched up with our variable names, methods, etc. About half the time it completely misses the mark/intent of what is being written, and offers an auto-complete for a different problem.
20% of the time, it actually acts like a full line or full section autocomplete. Areas I've found it particularly helpful are writing tests. For example I added a new integration yesterday that touched a bunch of interface files for those integrations. Copilot was able to pick up on that and auto-generate a 90% functional test with ~30 lines, including setup and assertions.
I'm not convinced it's saving me time yet since I have to correct it/ignore it most of the time. When it works, it's cool. And like another comment said, typing speed has never been a bottleneck for me (record of 155 wpm on typing tests, I probably sit around 120-130 for average day-to-day typing).
Re: Tips for better coding with ChatGPT
#39I am absolutely disgusted by the idea of people using ChatGPT for serious coding work. Maybe I am just getting old but the idea of using a non-deterministic tool that can hardly be reasoned about that will straight up hallucinate facts for any professional work sounds insane to me. Yes, I do see the value for Junior Devs as I am sure it can drastically increase their output in the short term but aren't they shooting…
For example, we plan to use GPT-4 for generating text that ends up being seen and read by our customers. (Can't disclose the details, as it's near to core of our business model.) We need a _lot_ of text, and its in style that is time-consuming to think and write by hand. However, all the generated data is checked for correctness by humans. I think that these tips are excellent for designing the generating process so that the end result is of as high quality as it could reasonably be expected to be.
Edit: Oh, you mean coding work as for generating code for developers? Not in the sense of using it as a component of a data-generating/transforming system? In that case, I pretty much agree.
Edit2: Oof, I just realized that I mistook this whole thread for another thread that was posted earlier on Hacker News. So I thought we were talking about engineering systems that has GPT-4 as a subsystem: https://platform.openai.com/docs/guides/gpt-best-practices
Re: Tips for better coding with ChatGPT
#40I am absolutely disgusted by the idea of people using ChatGPT for serious coding work. Maybe I am just getting old but the idea of using a non-deterministic tool that can hardly be reasoned about that will straight up hallucinate facts for any professional work sounds insane to me. Yes, I do see the value for Junior Devs as I am sure it can drastically increase their output in the short term but aren't they shooting…
It's good at generating simple things that are 60% to 100% correct.
It's good at summarizing high level concepts or summarizing how multiple high level concepts relate with 60% to 100% accuracy
It's ok at helping you think about things to troubleshoot when you have an error you're not sure to do with.
To be honest I would say it's actually not going to be good for junior devs because they don't have the skills to properly fact check, quickly. But for more senior folks it's very easy to immediately see what's wrong, ignore those parts or ask it for clarification, and use what's right.
If you mostly know what you're doing, it can be very helpful to get immediate feedback, niche examples targeted exactly to what you're working on, or summaries of whatever high level concept you need a little more clarification on.
Much much faster than spelunking through Google.
As a concrete example I just this morning had it summarize Python's asyncio Queues versus Tasks, what they are, a few examples of using them, and when you would want to use one versus the other. All in just a few minutes.