HACKER Q&A
📣 rhacker

Programming related ChatGPT prompts you are being blown away with


I'm currently playing with ChatGPT and many people are describing it as being "blown away". I can't think of any other words to describe this feeling either. Please post some of your prompts that have simply blown you away.

Please don't include the output, just the prompt (or follow up prompts if that was necessary). And then say how spot on it was.


  👤 rcfox Accepted Answer ✓
I asked it to critique a function I had written. It was able to point out some edge cases I hadn't considered. It even recognized that I was using ANSI escape codes to colour some text red and suggested a couple of libraries to handle that for me.

👤 rhacker
Prompt 1: Write a react component that is basically a starfield webpage background, and supports a property to enable and disable the animation

Prompt 2: Can you answer the same question but with Typescript and using React Hooks instead of a class.

Prompt 3: Ok, using the same concept, now render the stars using html5 canvas, but still in a react component

Result: I changed two lines (it was missing a useState import, and there was a null check issue - but that was only because of my TS settings) Other than that, it loaded and displayed an animated top-view downward scrolling of stars going at different speeds.

You'll all think I'm crazy but I literally feel like I have access to the computer on TNG.


👤 izolate
I used it to teach me how to implement an airbnb clone in postgres using only native postgres data types and methods (e.g. point, earth_box).

It was mostly an exercise in learning the types, and the interactivity had me up and running much faster than Google or reading the docs ever could.


👤 torstenvl
Some of it is really impressive (it seems to have internalized a lot of knowledge about RTF processing) but some of it is really bad (I can't get it to write a good utf8 encoder/decoder no matter how much I coach it).