Hacker News new | ask | show | jobs
by two_in_one 976 days ago
This is funny. I started with friendly tone, looks like it was the right thing to do. Usually prompt is <task> "Can you do it?". Or "I need your help with <function>". As conversation goes on my queries become shorter. It has context window. So with long prompts it starts forgetting sooner. From time to time I have to post the whole code (which is always < 10k) saying "to be on the same page". Otherwise it forgets the names we are using.

Once gave it a big programming task. Obviously not fit in one response. So it gave high level structure with classes and functions to full. Me: "No, no, I don't want to it all by myself!" GPT: "Alright, .." and gives implementation for some functions.

But the main thing I noticed using ChatGPT is that I'm thinking more about _what_ do I need instead of _how_to_do_it_. The later is usual when using unfamiliar API. This is actually a big shift. And, of course, it's time saving. There is no need to google and memorize a lot.

For bigger programming task I think it's better to split it in smaller blocks with clear interfaces. GPT can help with this. Each block no more than 300 lines of code. As they are independent they can be implemented in any order. You may want top-down if you are not sure. Or bottom-up if there are some key components you need anyway.