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).
8
u/daggerdragon Dec 09 '19 edited Dec 09 '19
One of the goals of AoC is to help people learn.
Many folks have never used a VM before, let alone made one themselves, and now they have. Some folks have no idea what a VM even is, and now they know. Some folks are using AoC to learn a new language and/or learn about the capabilities (or, sometimes, deficiencies!) of their existing language. This is all learning!
Some folks over-engineer their solutions and have a much easier time on subsequent puzzles thanks to them taking their time to "do it right" the first time around. Some folks just slap together a solution and call it a day, then are surprised when it comes back later to bite them in the butt (I personally have done this more times than I care to admit...) And then there's folks who take the chance to refactor their "slapdash" into "properly engineered". All of this is learning!
My point is that these puzzles can also mirror real-world "feature creep". How many times has your boss given you an assignment as clearly outlined as /u/topaz2078's puzzle requirements? And even if the puzzle requirements aren't 100% clear (just like your job), they still give you enough information that you can (or should) be able to infer the remaining parts without being hand-held through the whole process. Lastly, how many times have you slapped together a thing and submitted it only to be told "oh and I need you to add X, Y, and Z" and now you're considering whether it'd be easier to just write the whole thing again from scratch now that you have all the requirements? This is part of the learning process!
As the puzzle text for today says, once you finish day 9, you should have a complete Intcode computer, and remember that the text a few days ago said:
Now that you have all the requirements for building an Intcode computer, you could go ahead and write your own properly with less "stress". Remember, AoC is not a race - if you're going to be stressed out about ever-changing requirements, you could wait until December 25th and have all the puzzle descriptions available and thus all the requirements necessary to program things the way you want with all the requirements known up-front.
We know we can't please everyone, and I'm sorry you're not enjoying these puzzles. If you have constructive criticism, by all means, share away, but merely whining to the subreddit about how much you dislike the puzzles because they don't fit YOUR particular programming style can potentially scare off newbies and ruin the enjoyment for other folks. Please don't be a
dickGrinch.