Hacker News new | ask | show | jobs
by rlt 1239 days ago
ChatGPT. I’m not even joking, it’s now my first step in learning new tech (but not too new, GPT-3 was trained on a corpus ending in 2021 I believe)

Ask it something like “Explain how to get started with Docker” and it will give you a bunch of steps in a reasonable order. Then ask it for details for each step, like:

“How do I install Docker on macOS?”

“Write a commented Dockerfile for an application written in $WHATEVER”

“Now write a commented Docker Compose file for this application and a Postgres database”

etc

3 comments

The other day i asked chatgpt to write me a sample program with a particular tui library. It wrote the python example. Very impressive. Trouble is, it was a go library. No name clash or anything. It flat out wrote sample code for a lib that did not exist. When prompted that it is a go library. It wrote a similar correct looking program with functions that don't exist in the go library.
OP is not actually asking how to learn Docker or a new technology. They are asking how to learn best practices for (the more complicated parts of) CI. Or maybe how to leverage docker at a higher level, than to go lower into the details of how it works.

What does ChatGPT say for something like

"How do I clean up old docker images in a registry after I merge a branch?"

I tried asking chatGPT some docker questions a couple of weeks ago, but beyond the very most basic "start an existing Debian container", the answers were always wrong unfortunately (I'm not a docker expert to see they are wrong, I ran them and they didn't work).