Unable to load image

Advent of Code Day 5, AKA Stacks 101 :marseyinabox:

I actually stayed up to get a semi-decent score for once (being a eurocel for this is suffering). How are you all faring with shifting boxes around?

![](/images/16702184438592093.webp)

26
Jump in the discussion.

No email address required.

Imagine if you frick up a single time when manually entering the transposed input. It's, like, what, 30 letters, this can happen. How will you even recover?

Having a pretty straightforward code that picks every fourth letter is so much better as far as recovering from bugs goes.

Have you participated in previous years? I hope that this one will not be an exception and at some point we get one or more of those hellish simulation problems that fastest people take an hour to get right. They tend to separate the cowboys from the responsible coders really well.

Jump in the discussion.

No email address required.

by... reentering it. probably the same amount of time :marseywait: as if you mistyped a parentheses or something and something got fricked up along the way. there's a reason the fastest people just :marseyblops2chadcel2: did it manually

no but simulating stuff is much more of an interesting puzzle :marseysphinx: than r-slurred :marseysoonretarded: shit :merdesey: with lists.

Jump in the discussion.

No email address required.

by... reentering it.

I find it hard to articulate it properly, but IMO there's a huge difference between the kind of mistakes you do when inputting data manually and when writing the code that parses the data.

If you frick up the code then you can look at it and find the error logically. And if you frick up again, alright that's possible, but you're still moving towards the actually correct parser.

If you frick up transcribing the data, that's just it, the only way to fix it is to start transcribing anew and hope that you don't randomly frick up again.

Jump in the discussion.

No email address required.

fair enough :marseyitsallsotiresome: i suppose but also... meh

Jump in the discussion.

No email address required.

I completely get where you're coming from, but I also can see JC's perspective on this. I probably spent more time writing a parser than solving the problem, tbh, not because the parser was particularly difficult (it really wasn't) but the box moving part of the puzzle was dead simple.

Jump in the discussion.

No email address required.



Now playing: School House Harmony (DKC2).mp3

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.