top | item 35886394

(no title)

bulldog13 | 2 years ago

Anyone have any good examples or tutorials of specifically how to use ChatGPT for greenfield code development ?

discuss

order

padolsey|2 years ago

I usually ask it to write me a nextjs app and deploy it to vercel. It gives me a few commands and files to plop in the right directories. E.g. `npx create-next-app foo; cd foo; ...; vercel --prod;`. Often I only make a couple changes then 5 mins later it can be deployed for free on vercel. Eg, it took me a couple mins to create a lil app to enable a user to drag/drop words of your sentence. I asked chatgpt (gpt-4) the following: "Write me a nextjs app (and deploy to vercel) that shows the sentence 'Anyone have any good examples or tutorials of specifically how to use ChatGPT for greenfield code development ?' but each word is draggable and re-arrangeable such that a user can drag any word to anywhere in the sentence. Add a randomize button too."

See the result here : ) https://dndexamplehn.vercel.app/

It's incredibly empowering to be able to easily spin up little proofs-of-concepts or bootstrapping larger projects. I think all the naysayers have not experienced its power yet.

julianeon|2 years ago

I've thought it would be cool to see something like this:

1. Go on Twitter and find a famous account (for visibility). Maybe they say something like, "The data shows..."

2. Pop into ChatGPT and create a data viz.

3. Deploy to Vercel.

4. Go back to Twitter, post the link, enhance the convo, naturally gain followers in exchange for providing that value.

andai|2 years ago

I asked it to design and implement an entire software system. I just copy-pasted the output and it (almost) worked the first time.

(It ran out of context window and started forgetting the design; if I'd started each message with the design and class layout it would have probably worked the first time!)

Specifically I asked it for a design, then a main class, then for each of the other class files. (This process could probably be automated.)