Hacker News new | ask | show | jobs
by theRealMe 1135 days ago
I just used ChatGPT with gpt4, copied your problem from your post, ran it, and the first result worked just fine.

Might be that you’re using gpt3.5(understandable because not everyone has access), or maybe you asked in a different way than in your post.

Plenty of people have been building simple websites with it, so maybe try to figure out what you’re doing wrong instead of declaring the tool a failure.

1 comments

GPT3.5 easily spat out a working answer in response to "Write an HTTP and JavaScript page, as laconically as possible, that takes a list of newline separated strings from a textbox, and divides them randomly into `n` groups, where `n` is set with a text box."

Using ChatGPT to code effectively requires internalizing the small sliding context window and correct specification of the problem-space. You can get real work done if you thoughtfully split your project into parts, and you can save time by jumping back to a contextual fork where your program was fully specified.