by tito · 23h ago · 0 comments
I have this funny belief that sounds something like this: learning happens fastest when the next adjacent step is within a certain mental distance. Too far and you just get stuck. Too small and well you don’t learn something new.
And for me, Advent of Code has simply been too big of a mental leap.
This year I’m excited to try it with Claude! An attempt to shrink that mental distance. The risk is it becomes too small and I learn nothing.
If there’s others here who want to compare notes on their process or have suggestions I’m all ears.
You're spot on, this sweet spot is also one of the premises of the book Flow by Mihaly Csikszentmihalyi
1. If I'm stuck, take a break, go cook dinner or something else and mull over solutions in the back of my mind for at least an hour or 2 (better yet, sleep on it). If I'm still stuck after that, I'll ask AI for a hint.
2. I have in my prompt to not give away the answers, but try to give me little hints.
3. Always write the code by hand.
4. Once I've solved the puzzle, I have AI review the solution and suggestion improvements or other techniques I could have used.
One year you had to build some sort of upcode parser, which I guess mimics a theoretical computer processor, but as someone who learned programming by glueing things to gather and eventually writing instead of glueing it does become nearly impossible to crack those ideas.
https://en.wikipedia.org/wiki/Zone_of_proximal_development
These comments are full of experienced engineers (myself included) who are excited to get back to coding by hand and would get nothing out of this if using claude. So it's cool to see someone approaching from a different angle. My 2¢, LLMs make it easy to feel like you're learning more than you actually are. So I would consider setting as a goal that by the time you've completed a challenge using claude, you are confident that you could do it again without claude the next time.
Here's my prompt, give it a try if you're curious!
"can you help me learn what's going on in the first advent of code. like don't give me the answer at all, the point is that i learn something. so....maybe you can ask me questions to figure out what i know and don't know. and use this principle to help me: https://en.wikipedia.org/wiki/Zone_of_proximal_development"
It reminds me of reading a C book as a kid in the library. I didn't even have a computer but I enjoyed writing the programs on paper and imagining how they worked. Honestly, my coding ability probably hasn't progressed all that much, but the joy is there.
I invite folks to try this, even if you're like a super experienced programmer. And tell me if you have fun with it or not I'd like to hear either way.
There's a leaderboard too, come join! https://advibe-of-code.github.io
Thank you for the kind words of encouragement!
Because the later days require knowledge of specific algoritms and is not something a regular human can figure out by themselves.
Using python already simplifies solutions through an endless stdlib .
Sometimes, in later days, it makes sense to recogise things unsolveable by default tools and go for, say, smt solvers.
Point being, it is not too bad.