Re:Advent of Code 2024
by tmtvl on Sunday December 01, 2024 @10:30AM
(#42288880)
I still haven't made my way through all of the 2015 problems yet. But I don't play the game correctly any way: instead of trying to solve the problems as fast as I can, I try to write well-documented easily maintained code which runs fast. Balancing 'easily maintained' and 'runs fast' takes a little more time than 'just solve it' _and_ I'm planning on working my way through the problems chronologically, so I doubt I'll get to the 2024 problems any time this decade.
[ Parent
| on HN ]
Re:Advent of Code 2024
by zach_miller on Sunday December 01, 2024 @11:06AM
(#42289072)
That’s one of the many ways to do Advent of Code.
I try to do everything in a single pure functional expression no matter how dumb and unreadable that makes the code look.
That’s not how to do advent of
Code.
Re:Advent of Code 2024
by release-object on Sunday December 01, 2024 @10:52AM
(#42289009)
Why not?
It’s supposed to be fun. As long as you’re not cheating the global leader board - which this approach doesn’t - why not play however you want.
I like go to overboard writing parsers for each day.
From the about page: "... However, you should do Advent of Code in a way that is useful to you, and so it is completely fine to choose an approach that meets your goals and ignore the leaderboard entirely."
Is there really a wrong way to do it?
Yes, with ChatGPT or similar: " Can I use AI to get on the global leaderboard? Please don't use AI / LLMs (like GPT) to automatically solve a day's puzzles until that day's global leaderboards are full."
my guess is that the creator would almost certainly disagree with you
Ha! Yeah, imagine me streaming my working on AoC, basically anyone tuning in the stream would say 'you're doing it wrong, stop having fun!' and leave.
> But I don't play the game correctly any way: instead of trying to solve the problems as fast as I can, ...
FYI trying to solve the problems as fast as you can is not considered "the correct way". The author has emphasized multiple times that going for the leaderboard is not for everyone and requires a pretty questionable coding style. The main goal is to have fun and learn something new.
Re:Advent of Code 2024
by Dansvidania on Sunday December 01, 2024 @04:49PM
(#42290987)
doesn't the existence of the public leaderboard beg to differ? :)
The fact that there are only 100 spots means it's not intended for everyone
The way I see it, it exists because it's the only one that can be reasonably implemented.
Re:Advent of Code 2024
by Dansvidania on Monday December 02, 2024 @06:27PM
(#42301489)
I do not disagree, but the fact that this is the only leaderboard that can be implemented does not imply that one needs to be implemented in the first place.