this post was submitted on 19 Mar 2025
683 points (98.2% liked)
Technology
66892 readers
4651 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each other!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
- Check for duplicates before posting, duplicates may be removed
- Accounts 7 days and younger will have their posts automatically removed.
Approved Bots
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Are you a software engineer? Without doxxing yourself, do you think you could share some more info or guidance? I've personally been trying to integrate AI code gen into my own work, but haven't had much success.
I've been able to ask ChatGPT to generate some simple but tedious code that would normally require me read through a bunch of documentation. Usually, that's a third party library or a part of the standard library I'm not familiar with. My work is mostly Python and C++, and I've found that ChatGPT is terrible at C++ and more often than not generates code that doesn't even compile. It is very good at generating Python by comparison, but unfortunately for me, that's only like 10% of my work.
For C++, I've found it helpful to ask misc questions about the design of the STL or new language features while I'm studying them myself. It's not actually generating any code, but it definitely saves me some time. It's very useful for translating C++'s "standardese" into english, for example. It still struggles generating valid code using C++20 or newer though.
I also tried a few local models on my GPU, but haven't had good results. I assume it's a problem with the models I used not being optimized for code, or maybe the inference tools I tried weren't using them right (oobabooga, kobold, and some others I don't remember). If you have any recommendations for good coding models I can run locally on a 4090, I'd love to hear them!
I tried using a few of those AI code editors (mostly VS Code plugins) years ago, and they really sucked. I'm sure things have improved since then, so maybe that's the way to go?
I primarily use GPT style tools like ChatGPT and whatnot.
The key is, rather than asking it to generate code, specify that you dont want code and instead want it to help you work through the solution. Tell it to ask you meaningful questions about your problem and effectively act as a rubber duck
Then, after you've chosen a solution with it, ask it to generate code based on all the above convo.
This will typically produce way higher quality results and helps avoid potential X/Y problems.