HackerTrans
TopNewTrendsCommentsPastAskShowJobs

zerocruft

no profile record

Submissions

Adventures with ChatGPT: Advent of Code Edition

tab.al
1 points·by zerocruft·4 years ago·0 comments

A Simple HTTP Server in Go

tab.al
2 points·by zerocruft·4 years ago·0 comments

comments

zerocruft
·4 years ago·discuss
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 years ago·discuss
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 years ago·discuss
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.