AI Code Generation

Discussions evaluate the capabilities of LLMs like ChatGPT, Claude, and GPT-4 for generating, debugging, and understanding code, including prompting techniques, tools, and limitations.

➡️ Stable 0.7x AI & Machine Learning
6,437
Comments
16
Years Active
5
Top Authors
#2809
Topic ID

Activity Over Time

2010
1
2012
3
2013
5
2014
3
2015
8
2016
24
2017
23
2018
16
2019
50
2020
87
2021
201
2022
564
2023
2,230
2024
1,185
2025
1,882
2026
157

Keywords

e.g LLM TikTok IDE aider.chat NPC q.maxB AI SQL FWIW code chatgpt gpt write llm ai write code coding claude len

Sample Comments

kavaruka Nov 6, 2023 View on HN

ChatGPT is useful only if you understand the code that it produces

yieldcrv Jan 21, 2026 View on HN

Have you tried Claude Opus 4.5 within Claude Code?it's only been released for two months but its changed the calculus entirelyif its been over two months since you've tried any LLM generated code solution, or are still occasionally copy pasting code requirements into a browser chat session as if its still 2023, then I can't put any weight into the opinion

dwaltrip Mar 24, 2023 View on HN

Have you tried gpt-4? It's not perfect but it is a clear improvement for code.

welshwelsh Dec 15, 2022 View on HN

ChatGPT can already do that. You can ask questions about the code, make suggestions and it will take this into account and write improved code. You can tell it the code it wrote produces an error, and it will then find the error, explain what it did wrong and fix it.

LargoLasskhyfv Feb 4, 2025 View on HN

Use some LLM which is good at understanding code/coding, maybe supervised by one which is good at reasoning.

GiorgioG Sep 3, 2024 View on HN

I must be living in a different universe, every single LLM I've tried are shit at the details/nuances of writing code.

powerz Jul 19, 2023 View on HN

How to make ChatGPT write code the way you want (code structure, libraries etc)

ChatGTP Oct 3, 2023 View on HN

What if ChatGPT doesn’t want to generate code for the day due to an existential crisis ?

Kuinox Nov 14, 2024 View on HN

ChatGPT doesn't imagine running code, it actually runs the code, you can see the code it write and some of the output of what it runs, you can see it in the interface screenshoted in the article.

cloudking Mar 12, 2024 View on HN

What kind of prompts are you using? You'd be surprised how much better your output is using prompting techniques tailored for your goal. There are research papers that show different techniques (e.g one shot, role playing, think step by step etc) can yield more effective results. From my own anecdotal experience coding with ChatGPT+ for the past year, I find this to be true.