News for hackers. Stuff that matters.
Re:Show HN: My Child's First Program by highfrequency on Tuesday December 06, 2022 @11:55AM (#33883187)
Is the ChatGPT sample code/tutorials much better than the tutorials that can be found on Google?
Re:Show HN: My Child's First Program by jvm___ on Tuesday December 06, 2022 @12:15PM (#33883543)
Create me a flutter app that has a list of todo items. Each item has a timer. The list shows one item at the top and when it's timer finishes the next one in the list moves to the top.

That prompt, or something like it, generated Futter code along with the instructions of how to modify a default flutter app for the code to work.

I haven't ran the code yet, but all the other code samples I asked for worked.

Asking for a ruby Student, Teacher application where the student takes multiple courses and the teacher can assign a grade to each course.

After you get that code, you can clarify in your next question.

I want each course to have progress steps.

More generated ruby code..

Can you add a grade for each progress step, and can the teacher have the ability to unlock the next progress steps.

Generates more code.

Then.

Generate me a react front end for this.

Generates React code.

I didn't install/run the code, but it looked accurate and had comments explaining what the lines of code did.

----

GitHub code works, ChatGPT code works, and does exactly what you want, and you can modify it just by asking.

"Change the progress array to be an object that has a grade, started date, finished date and parent acknowledgement."

That actually works as an example after the bot generated the initial app.

We're in for a world of changes.

Re:Show HN: My Child's First Program by ericmcer on Tuesday December 06, 2022 @12:43PM (#33884059)
That is what though, 2 hours of coding for an experienced dev? And the trade off is you have no context over the code running your product?
Re:Show HN: My Child's First Program by jvm___ on Tuesday December 06, 2022 @01:15PM (#33884590)
2 hours of coding for an experienced dev

Sure, building a table is a two hour job for an experienced wood-worker.

If a grade 7 student can make an app by - Describing what they want it to do - Copy/pasting some code - And running it.

That's a leap forward in my books.

The first barrier to making apps has been the time involved in to learn the syntax, if that's gone in the first days of this app, what's next? Do we teach how to write code anymore, or just to read and understand it?

Re:Show HN: My Child's First Program by teaearlgraycold on Tuesday December 06, 2022 @12:03PM (#33883361)
Sounds like copying from GitHub with extra steps
Re:Show HN: My Child's First Program by gardenhedge on Tuesday December 06, 2022 @12:07PM (#33883421)
It's more like having an assistant who can do it for you so you need no/little knowledge of GitHub.
Re:Show HN: My Child's First Program by jvm___ on Tuesday December 06, 2022 @01:34PM (#33884856)
Less steps as the code it generates will do what you ask of it, or be modified based on your english language changes.

It also gives you a human readable section, in addition to the code, that tells you what the code is doing, and where exactly to copy/paste it to make it run.

Give me an app in flutter that does X How do I install flutter How do I run my first flutter app

That only requires typing and reading for exactly the results you want.

Github only gives you what you know already. ChatGPT only gives you what you asked for, and holds your hand for how to use it.

Re:Show HN: My Child's First Program by OJFord on Wednesday December 07, 2022 @11:39AM (#33896518)
IME no - but its NLP is much better than any search engine, so it's a lot easier to get a more specific answer/example.

Vs. searching for results on StackOverflow and similar, you'd probably have to combine results on 'how to basic flutter app', 'intro to programming', 'todo list example app [perhaps not in flutter]', and even then it wouldn't be exactly what you wanted if you were looking for specific requirements.