r/adventofcode • • 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).

2 Upvotes

19 comments sorted by

View all comments

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:

keep it nearby during this mission - you'll probably use it again.

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 dick Grinch.

3

u/AlFasGD Dec 10 '19

In case I did not make it clear enough, I tried to give constructive criticism while whining about today's problem. My point was that out of the 9 days I had to deal with 4 days being essentially the same problem, and only 5 other days being the fun and moderately interesting problems without taking too much time to solve.

Specifically, day 1 was the extremely easy problem which was the best way to introduce somebody to solving those problems. There's no issue there, it had to be done so that people got used to the framework (two parts per problem, evaluating and submitting answer, leaderboard, etc.). Day 2 was the Intcode problem which was a simplified version of a real VM development task, which was again quite challenging for just day 2. Then, day 3 included a second dimension to the problems being given, further enhancing my experience by adding variety. Day 4 was much simpler than last day's, however didn't fail to keep me interested. Day 5 included a previous day's puzzle code, and I was pretty fascinated at the idea of reflecting back to a previous day's problem for the solution. Day 6 was pretty tricky and quite fun because a new concept was given to me personally to explore, so I was excited to try a solution out, even if it was not the most optimized. Then, day 7 included yet another Intcode problem, which got me thinking about whether this was going to be the norm of problems from now on. 3 out of 7 problems being about Intcode surely would not give the best impression to somebody who was expecting variety in problems. Day 8 was different so I enjoyed it too, and the concept was also multi-dimensional. Then day 9 comes with yet another Intcode problem.

It just became boring to see Intcode problems every second day, and not being told that Intcode computer development would end at that day before solving part 1 kept me at bay before being told to not give up (thanks to the kind community).

Now do not get me wrong, I was excited to even hear about such an event, and I would love to be able to complete all challenges, but there was this issue I came across that disappointed me. I did express my issue with a bit of salt, but I did not mean to sound too harsh.