Settings

Theme

Ask HN: What's the best way to code a complicated project from scratch using AI?

1 points by l2silver a year ago · 4 comments · 1 min read

Reader

Using chatgpt (paid) and Claude (free):

When I try to code a somewhat complex project (backend with login capabilities, jwt, refreshtoken, and e2e tests) and I put all the requirements in the initial prompt, the output is usually condensed and incomplete, like it has a maximum output length that it can't exceed.

When I give it small prompts, I get more verbose and complete answers, but the prompts seem to forget the previous prompts, and throw out logic that was written previously.

What's the best way to feed instructions to these AI systems for relatively complex projects?

talldayo a year ago

Context ain't free. The larger your project becomes, the more money you will spend trying to infer code from it. It's possible that the cost of writing complex code with AI exponentially correlates to the complexity of the working codebase.

  • l2silverOP a year ago

    So it's not really possible at this time with these general consumer offerings?

ericalexander0 a year ago

The key is modularity with good interface design, then you have AI generate each component and play more of a QA role to validate each component is functional.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection