HackerTrans
トップ新着トレンドコメント過去質問紹介求人

zerocruft

no profile record

投稿

Adventures with ChatGPT: Advent of Code Edition

tab.al
1 ポイント·投稿者 zerocruft·4 年前·0 コメント

A Simple HTTP Server in Go

tab.al
2 ポイント·投稿者 zerocruft·4 年前·0 コメント

コメント

zerocruft
·4 年前·議論
I actually wrote about this, describing how I used ChatGPT to solve Day 4 of Advent of Code: https://tab.al/posts/adventures-with-chatgpt/

There you can find the prompt that allowed ChatGPT to provide a working solution. It is a bit hit and miss, but you also gotta make sure any assumptions are explicitly noted in the prompt.
zerocruft
·4 年前·議論
I don't want to get a MSc or PhD, only because I don't think it is worth the time. I like some aspects of academia, but I much prefer learning things by myself.

That said, I have a strong desire to learn math, and I have a copy of Understanding Analysis waiting for me to pick up. I think I'd like to learn Analysis, Linear Algebra, Probability, Graphs... Book suggestions are welcome by the way.
zerocruft
·4 年前·議論
I use a combination of both. Logging usually requires less setup overhead, so I often opt for that. Sometimes though, the path it takes for the code to reach the part I'm interested in can be pretty obscure. It's in these cases that the debugger truly shines.

It also depends on how many things you are interested in. If you care about, say, a complex object with many properties, then the interactivity of a debugger trumps logging.