3 ms·
Yes exactly. I had to be very specific and tackle the project in the same way I would if I was fully writing the code. First data schema, then models, then cont
by invalidusernam3 3y ago
Yes exactly. I had to be very specific and tackle the project in the same way I would if I was fully writing the code. First data schema, then models, then controllers with CRUD and views, then routes, then authentication, then test cases, then TS transpiling, etc...
It's definitely not something someone with zero coding experience could easily do, and I feel even a junior developer would struggle with anything even as complex as this. You have to have the concept and structure in your head, it's just writing the code for it.
- SamBam 3y ago> You have to have the concept and structure in your head, it's just writing the code for it. I wonder how far you'd get with the technique of asking ChatGPT to lay out its plans first, kind of like the improvements in math questions you see when you ask it to write down its reasoning before committing to any answer. "This is what I'm looking for: XXX. What are the different pieces of this that I'm going to need to create?" "Ok, the first thing on your list you gave me was a database to store the data. What would the structure of that database look like?" "Can you give me the code to create that database?" Etc etc. i.e putting the actual code as the last step each time.
- bugglebeetle 3y agoThis is the best form of prompting for generating code. You tell it to first generate a technical spec for solving the stated problem problem, consider multiple options, return for your review. You then use a trigger command like “build” to then implement, once you’ve specified any changes.
- invalidusernam3 3y agoI suspect it would work surprisingly well! But still, I think you would have to have a fairly good concept of coding to do even that. For example, my mum who has zero concept of what a database is (beyond the dictionary definition) would not be able to piece together an application like this (sorry mum!). But a junior developer would probably be able to just about do it depending on complexity. For me, using GPT felt very slow, but for a junior it might actually be faster than trial/error and Googling. Also, ChatGPT is only going to get better and better, so we can expect it to become quicker and easier to do such things.