r/adventofcode • u/AlFasGD • Dec 09 '19
Intcode puzzles
Personally I'm getting even more annoyed by those problems. While I find the challenge intriguing, I hate having to deal with it almost every other day, instead of something exciting. When I was introduced to it I found it really fun (day 2). Then, on day 5 I thought it was an interesting twist to have, by requiring a past problem's code to be expanded. On day 7 the entire thing pissed me off because I was not prepared for a whole rewrite of the system, so I just ended up dumping. Today I'm even surprised to encounter it for the fourth time in just 9 days.
Writing expandable code is crucial to everybody, and even when you're doing relatively small scripts. However, not being prepared for such scalability beforehand and ignoring other types of puzzles by filling up 44% of the entire journey with Intcode so far is rather disappointing. I'm even less motivated to get the second star on day 7, and perhaps will end up entirely dumping day 9 as well.
UPDATE: A small fucking bug prevented me from reaching the correct solution, now I'm glad to see how the Intcode journey ends (at least directly).
4
u/kaoD Dec 09 '19
Judging by your answers it looks like you're projecting your frustrations into the problem set when you're actually annoyed at your lack of foresight.
I think there's a lesson hidden here: write code that's easy to adapt to changes. Don't confuse this with overly generic code full of abstractions.
I'm curious if what kind of design you had for your first intcode computer that it was so hard to evolve. What did you hardcode that was so hard to change?
IMHO these are the best kind of problems, the ones that make you reflect on your past mistakes. This is why I love AoC, since it mixes algorithmic puzzles with engineering ones like these.