News for hackers. Stuff that matters.
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.
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.
Re:Advent of Code 2024 by empath75 on Sunday December 01, 2024 @11:00AM (#42289047)
I try to do everything in a single pure functional expression no matter how dumb and unreadable that makes the code look.
Re:Advent of Code 2024 by amw-zero on Sunday December 01, 2024 @10:37AM (#42288921)
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.

Re:Advent of Code 2024 by mytec on Sunday December 01, 2024 @11:35AM (#42289202)
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."
Re:Advent of Code 2024 by sokoloff on Sunday December 01, 2024 @10:50AM (#42288997)
Is there really a wrong way to do it?
Re:Advent of Code 2024 by nikanj on Sunday December 01, 2024 @12:05PM (#42289369)
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."

https://adventofcode.com/about

Re:Advent of Code 2024 by xdavidliu on Sunday December 01, 2024 @12:03PM (#42289361)
my guess is that the creator would almost certainly disagree with you
Re:Advent of Code 2024 by tmtvl on Sunday December 01, 2024 @12:00PM (#42289346)
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.
Re:Advent of Code 2024 by SkiFire13 on Sunday December 01, 2024 @04:18PM (#42290805)
> 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? :)
Re:Advent of Code 2024 by rbits on Sunday December 01, 2024 @06:55PM (#42291717)
The fact that there are only 100 spots means it's not intended for everyone
Re:Advent of Code 2024 by SkiFire13 on Monday December 02, 2024 @03:37PM (#42300138)
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.