Top
Best
New

Posted by saisundar 1 day ago

Advent of Code 2026(adventofcode.com)
52 points | 396 comments
alexfoo 6 minutes ago|
At a previous company we also used AoC as part of a security exercise. It went something like this:

1) Wait until a particularly tricky problem day

2) Look for a suitable solution in the appropriate language in the daily solutions thread in Reddit.

3) Download and augment the solution with some typical credential stealing code with mild obfuscation (we'd prepared this bit in advance) that uploads partial credentials (github tokens, kubectl tokens, browser caches, etc) to a seemingly random third party site under our control

4) Upload this new code to a seemingly random github repo

5) Get our plant to share the link to the repo and say on the internal #programming slack channel: "I saw this solution in _language_ linked on the Reddit sub-thread for today's AoC puzzle, it might be useful if you want the correct answer for your input if you're having trouble, I haven't looked at it myself."

Sit back and see who falls for it. A surprising number of people did, and some (but not all) were doing this from the same account they used for their daily dev work. (Think of the recent Binance heist...)

It really hit home when we shared what credentials we had managed to capture and what could be done with them.

Even the ones using it from a non-work account were surprised at what we managed to exfiltrate.

Only a couple of people were using completely clean accounts created purely for aoc with no useful credentials exposed.

ArcHound 41 minutes ago||
Please, try and use your brain for AoC. At least once a year, to practice and learn. It'll help your skills.

Leaderboard is gone, there are no real stakes. You don't even have to solve the problem on the day it appears, they'll wait.

And maybe you rediscover the joy of creating a solution of your own.

I've checked some research on this here: https://blog.miloslavhomer.cz/use-your-brain-even-if-the-mac...

Trufa 20 minutes ago||
Oh, while it is somewhat sad that the leaderboard is gone, I think it's a great solution! Do if for the love of it.

I'm gonna see if the old noggin' still works.

HumblyTossed 12 minutes ago||
What fun is that?!

FIRST!

/S

ArcHound 4 minutes ago||
No, I get it (and I see the /S), competition is very fun. But sadly we can't enforce fair game rules, so I think giving up on global leaderboard was a great call.
xavdid 4 hours ago|||
One of my favorites! Eric & co do such a great job putting everything together.

For years I've written up a step-by-step guide to how my code works and published to a little side-blog at https://advent-of-code.xavd.id. It dramatically increases the time it takes to complete each day (I spend much more time writing/explaining than programming) but I've found the practice really rewarding.

I started partly because I wanted to make sure I understand the problems and partly because every solution in the daily Reddit thread is reads like a code golf competition. I get it, people tend to prioritize speed and terseness when solving (leaderboards, etc). But a bunch of inline functions and single letter variables make it really hard to understand their solutions. So in an effort to make something legible to readers of all skill level, my solution looks just like something I'd write at work.

WesleyJohnson 5 hours ago|||
That took me far longer than it should have. I can't believe how rusty I've gotten after relying so heavily on AI for the past 4 to 6 months. Definitely considering 1 or 2 days a week of only hand-rolled code to stay sharp.
gwbas1c 4 hours ago||
> I can't believe how rusty I've gotten after relying so heavily on AI for the past 4 to 6 months. Definitely considering 1 or 2 days a week of only hand-rolled code to stay sharp

Consider:

1: Write "shorter" prompts that have AI do a smaller, "boring," part of the problem

2: Code by hand for 20-60 minutes on the fun part, then hand off to AI when you hit the boring part.

3: Have AI review your work before you send the PR to your peers.

WesleyJohnson 3 hours ago|||
Good points.I've tried scaffolding new features, writing some class and method outlines and implementing partial features - then handing over to AI to flesh it out. That's giving some satisfaction for sure, so I'll continue to do more of this but maybe push myself harder to a little more.
FunkyMushroom 4 hours ago||||
Or just fully don't use AI for the period.

It is basically as fast to type out a boring problem than it is to wait on an LLM to do it for you and review the output. Having a mix of "boring" and complex problems is good for pacing your energy during a workday.

(And any true boilerplate already has tools to generate it conventionally)

> Have AI review your work before you send the PR to your peers.

That's just the exact same problem happening to review skills.

cma 4 hours ago||||
also

    /output-style explanatory
and

    /output-style learning
Learning is like explanatory but also reserves parts of tasks for you to complete, then gives feedback.
criddell 4 hours ago|||
> before you send the PR to your peers

Nobody wants to see your PRs for AoC code.

ethersteeds 3 hours ago||
I read that as a suggestion to apply at work to stay sharp, not about solving AoC.
criddell 2 hours ago||
That would make more sense.
djoume 2 hours ago|||
Check out https://fata.app/daily

I created it so I could do 5 mins daily reps to prevent AI skill rot

fantasizr 5 hours ago|||
the deskilling is real and the panic hits like a ton of bricks like the cliche scene of the superhero recognizing his powers are gone
Fergusonb 3 hours ago|||
The shape of the solution was still clear to me, but I had to look up the correct syntax in my most used language (well, second most now that I've been programming using mostly English)! I've completely stopped thinking about it.
wateralien 5 hours ago|||
Genuine question...

> to stay sharp

Is this just for the fun of coding or for some other purpose?

lunar_mycroft 4 hours ago|||
Clearly the consensus is that coding knowledge still matters, because if it didn't almost everyone on this site would already be unemployed. Therefore, you should absolutely take steps to ensure you build and retain that knowledge.

[edit: wasn't -> didn't]

FractionalRadix 3 hours ago|||
You always understand the code that you wrote better than the code that you only read. That's why it's good to write some parts yourself, even if the LLM can do it faster.
lunar_mycroft 3 hours ago||
And that understanding shapes your thinking about the problem and solution, which can (and IME usually does) change what you build and how you build it. If you hand it off to someone/something else, even if it builds exactly what you initially intended, it would likely be worse than what you would have come up with by hand.
small_model 3 hours ago|||
haven't coded in nearly a year, and probably will never again, i'm now an agent God.
sva_ 5 hours ago||||
I can't point you at any evidence for this, but to me it seems pretty clear that if you have some very specialized (knowledge) skills, and let them dull out too much, that you'll grow dement.

Using those skills is no guarantee for not becoming demented, but not using them seems like a pretty clear trajectory. Use it or lose it

hi_im_greg_h 5 hours ago||||
Even in the age of LLMs the people producing the most value are those with high skill. If you let your skills atrophy what value do you provide?

The code is still important. Claude can't work it's way through the mess it generates so it's our job to keep it on the rails.

ThrowawayR2 4 hours ago|||
Somewhere in the not too distant future, a conversation unfolds in an office and the voice of Tom Smykowski Jr. is heard: "Well--well look. I already told you: I deal with the god damn AI so the product managers don't have to. I have agentic skills; I am good at dealing with agents. Can't you understand that? What the hell is wrong with you people?" That's a conversation I expect to happen a lot with so many people becoming over reliant on AI.
ramblerman 5 hours ago|||
> Claude can't work it's way through the mess it generates so it's our job to keep it on the rails.

"The computer hasn't proved anything yet. If we were playing a real competitive match, I would tear down Deep Blue into pieces" -- Kasparov 1997

hi_im_greg_h 5 hours ago|||
I've made no claims about what the future will hold. Currently, real skills are still required to wield LLMs effectively in my opinion.
ramblerman 5 hours ago||
let me then, the AI you are using today is the worst AI you will ever use.

OP was discussing the value of programming skills, so I think it's a little short sighted to answer that question without looking forward just a little bit.

hi_im_greg_h 5 hours ago|||
Sure, but I've got work to do today. So today my skills are still valuable and therefore I'll still value them.

If you're willing to let your brain atrophy until AI takes over, by all means go ahead. I'll choose to keep working on myself.

gadsdengrappler 3 hours ago|||
Maybe, but glib non-sequiturs like this and the Kasparov quote are not really arguments to the contrary.
LunaSea 5 hours ago||||
We're playing a game where "wining" isn't always clear cut. That's the problem.
B4uler5 4 hours ago||||
Then what’s the point in you doing it over a child is a third world country? Why are you still here on hacker news rather than re-skilling as a lumberjack or some shit?

If you think understanding the code is so useless you’re already done. Just leave people to enjoy things.

What’s the point in even contributing to discussion if you’re okay with your thinking becoming useless? Surely we should leave that kind of thinking to the LLM?

anon7725 3 hours ago||||
But still, Garry can play chess today, right?
ThrowawayR2 4 hours ago|||
Deep Blue used an advanced version of old-school chess search algorithms so it implies nothing about modern LLM AI. And 1997 was when Moore's Law was in full swing, unlike today where advancements in chip fab have become a slow, expensive crawl.

This is the sort of thing I mean about "AI bros not getting it"; they have no real understanding of what AI even is or the context surrounding it but they confidently spout balderdash to "prove" it's inevitability.

WesleyJohnson 4 hours ago||||
The fun coding (the typing part), the fun of developing (the engineering part), and the need to be able to guide the AI. Yes, these LLMs are always way smarter and better engineers than I am - but they can still go off the rails. Needlessly complex, over engineered, perhaps not aware of future changes/phases of the project where a choice now matters far more down the line.

I'm basically trying to avoiding falling into what I see as the true definition of "vibe coding". Just asking the AI to build something, with only the outcome in mind and signing off based on vibes alone - "Yeah, that seems good". I still very much feel the need to read and understand what's being built, so I can continually steer the AI in the right direction and step in should I need to. But I do realize, more and more, the "need" to step in is giving way to the "want" to.

Keyframe 5 hours ago||||
Think of it like Sudoku. Yes, you have tools to solve it but the journey is the purpose.
busssard 4 hours ago||
Brain training games are effective for the improvement of cognitive functions, processing and working memory.

https://pmc.ncbi.nlm.nih.gov/articles/PMC12244833/

jvanderbot 4 hours ago||||
It's mental jogging - why would anyone walk/run when cars exist, after all? Only to hit some personal goal and ostensibly keep the muscles strong.
alexfoo 4 hours ago||
> why would anyone walk/run when cars exist, after all?

Physical and mental health.

Same with things like Sudoku, crosswords, and puzzles like this. There's growing evidence that things like this can help improve cognitive function and slow decline. (Not in everyone obviously.)

verysmart 3 hours ago||||
Not becoming a reverse centaur who has no value other than a meat proxy. We will see a complete mean reversion (this happens after all hype cycles, and is already happening) back to emphasis on foundational knowledge. Leetcode/DSA will become more important than ever (in person), to ensure you're not hiring people who've hollowed out their brains with AI.
jmkni 4 hours ago||||
Same reason people do Wordle or Sodoku I guess, not a bad thing to make sure you've still "got it"
sevenzero 5 hours ago||||
Even if you work with LLMs you want to be able to properly judge its output. If your company does not use local models and Anthropic has some kind of shutdown or your companies internet connection has trouble, you want to be able to keep working.

I cant believe this is a genuine question to be honest.

user43928 5 hours ago|||
You are presenting it here as self-evident that handwriting code occasionally makes a meaningful difference in your ability to judge AI output. That's far from established.

Arguing with an internet or AI service outage is hardly relevant to most people. If it doesn't work, you enjoy a slow afternoon and spend time on other tasks, like everyone else is doing.

magpi3 4 hours ago||
It's not the writing of code that needs to stay sharp. It's the problem solving. And I think it's self-evident that you will be a better judge of how a problem is solved if you are a good problem solver.
user43928 4 hours ago||
I honestly don't see any practical relevance of code puzzles like Leetcode for my work.

None of it matters for the decisions and judgements I need to make - I am not thinking about algorithms at all. Actually, it wasn't even a common part of my work before AI either.

alexfoo 3 hours ago||
Fair enough, but I've seen people implement code within cloud scale applications with `O(n^2)` algorithms where a well known `O(n log n)` algorithm exists, or an `O(n log n)` algorithm where an `O(n)` algorithm exists. Eventually they've been identified thanks to profiling and replaced with suitable, more efficient, algorithms. This almost always costs more (in terms of human time) than identifying it before it gets into the code-base.

And these algorithms have definitely been covered by LeetCode problems, given the way LeetCode problems are engineered using the wrong class of algorithm complexity will result in a _Time Limit Exceeded_ (TLE) error. I'm no fan of LeetCode but I'm sure it's helped some people learn to think twice about their choice of algorithm.

Many inefficient algorithm choices are caught at code review time, by people who have more experience and/or a better understanding of algorithmic complexity, and so the original programmer is directed to learn why, and improve their knowledge so they are less likely to do the same in the future.

Similarly I'm sure there are hundreds of thousands of coding jobs where this kind of detail does not matter at all as the code involved simply never sees the scale where `O(n^2)` instead of `O(n log n)` becomes a noticeable problem.

user43928 3 hours ago||
Yes, I don't work on components where this is a concern.

If I would work on changes in such a load-bearing (pun intended) path, I would certainly attempt to have the AI analyze how scalable the solution is and profile it before submitting the merge request.

cutthegrass2 5 hours ago|||
likewise, even the AI labs include a round or two of hand coding in their recruitment processes. Can't see this changing, if at all.
keybored 4 hours ago|||
If someone picks up a basketball and complains about their body being slow and unweildy and that they need to get fitter... does that need to be explained beyond wanting to play basketball? Advent of Code is play.
pmarreck 4 hours ago|||
What if you could describe the algorithm just fine, but simply forgot the specific translations into a language's code?

Also, what is the difference, honestly, between these 2 framings of the same knowledge?

Insanity 3 hours ago|||
It’s the difference between knowing the motions of swimming and actually swimming.

Whether or not that’s valuable is a personal choice. But if someone says they know how to swim, I’d expect the latter.

theF00l 4 hours ago|||
I agree. I struggled remembering getting from input file to a list of integers. I hope my brain has more interesting problems to solve than that.
mrbnprck 3 hours ago||
imo thats more a "how to center a div" problem: you've done it n times but still need to look it up ;)
Juvination 3 hours ago|||
Same! For whatever reason I decided to use js for this, then realized even in my prime I didn't work with javascript that much. I had to lookup a lot of syntax I probably would've remembered off the top of my head.
Foivos 3 hours ago|||
I tried to do it by exclusively hand, but I had forgotten how aggressive the autocomplete is. :/
allthetime 2 hours ago||
Turn the autocomplete off. Just use a good LSP.
verysmart 4 hours ago|||
LLMs 100% do cause some sort of atrophy, I'm positive of it.

I try to do an hour or so of leetcode or codewars a day, I've gone months without and really felt my competency decline. I'm not sure what the outcome of this think-for-me experiment is going to be, but I'm pretty sure its going to end badly for a lot of people. It will be similar to how obesity became endemic once we had machines capable of carrying us everywhere.

mikequinlan 4 hours ago|||
"Drawing a spreadsheet by hand on graph paper took far longer than it should have. I can't believe how rusty I've gotten after relying so heavily on Excel for the past months. Definitely considering 1 or 2 days a week of hand-drawn spreadsheets to stay sharp."

Coding is now a solved problem. There is no reason for humans to do that chore any longer.

small_model 3 hours ago|||
Also write assembly 1 or 2 days a week rather than relying so heavily on compilers. Oh and binary and punched cards, plugs etc.
bob1029 3 hours ago|||
I have a garage full of crappy symbolic AI experiments I use to keep my manual skills sharp.

This is turning out to be quite fortuitous given that model providers have begun sandbagging on this exact area of use.

bee_rider 4 hours ago|||
1 seems like the sort of thing that could be banged out quickly, but might have some optimization potential as well. Did you do a clever algorithm?
WesleyJohnson 4 hours ago||
Not at all, some list comprehension and poorly optimized loops. I completely forgot about Collections. To be fair, most of day job (and side projects) are Django and we do a lot of our data analysis in the ORM and SQL, so I don't often reach for Collections or python-based analytics.
porridgeraisin 2 hours ago|||
Yeah, I generally don't enjoy programming puzzles, but I've decided to do AoC fully by hand this time as well, just to unrust myself.

I was sooo rusty even just implementing todays simple bucket sort thing.

solids 5 hours ago||
Yeah, good luck explaining that to management (in case you are an employee)
WesleyJohnson 4 hours ago|||
I'm lucky enough that we're a smallish tech team inside a non-tech company (our business is distribution). We're slowing rolling out AI usage, mostly for code reviews, discovery, documentation, and QA. We've got the green light to start using it more and more in development, and so the last 1/2 year has been a lot of usage on a single project at work and personal projects.

We're certainly not forced to use it and management still expects us to retain the skills that got us hired and promoted in the first place.

orphea 5 hours ago||||
They don't need to know.
keybored 4 hours ago|||
It’s to the point that you have to justify maintaining a modicum of the skill that you were hired for to management. Shucks, aren’t we due for another anti-union HN thread here? It’s been a minute.
pprotas 5 hours ago|||
I did the first level by hand. First time I coded without an AI agent in a year. I even visited Stack Overflow to look up how to sort a list... Feels like the good old times hahah

On a serious note, somehow I am happy that I was still able to do it by hand. Brain is not rotten yet! I'm sure the latter puzzles will destroy me though (but that has always been the case anyways!)

scotty79 4 hours ago||
Yeah, it was throwback. Googling syntax of a language I never used very much and almost forgot and hitting stackoverflow and the docs. Even Google AI answers did me a courtesy of not popping up.

Another cool idea how to have fun with it that came to my mind would be doing AoC in a language that AI builds for you as you go.

Boxxed 4 hours ago||
This is going to sound kind of mean, but... If you're happy you could sort a list and find the biggest numbers I think that's already not a great sign. So yes, definitely do the rest by hand! I bet it'll come back.
alexfoo 4 hours ago|||
Part of what I get from AoC is finding a more optimal solution.

Some people stick to just getting the stars at whatever cost, others look at the challenge in a different way.

With this problem there's:

a) Plenty of solutions that are O(n^2) and worse

b) An O(n log n) solution where n is the number of lines of the input

c) An O(m log m) solution where m is the number of unique values in the input

d) An O(n+m) solution where n is the number of lines in the input and m is the number of unique values in the input

I could tell a lot about someone's real world programming ability if I brought this up in an interview, especially with follow-up questions such as:

1) What if the input was so large it could not be held in memory all at once?

2) What if the input was so large that even a list of unique values could not be held in memory?

etc...

[EDIT]

If you can just point an LLM at it and get the answer without providing anything useful yourself then you've got nothing to differentiate you from every other candidate that can do the same. I'm not looking for people with multiple PhD's but I look for people who know enough to know when the LLM is spouting nonsense or is suggesting something suboptimal that will fail when scaled up.

Interviewing has become more fun because of this. We tailor our interviews so the AI assisted portion gives the candidate enough rope for the AI to paint themselves into a corner if not careful, and then the non-AI portion weeds out the people who don't have (or have lost) the ability to think for themselves.

stephencanon 4 hours ago|||
Since m < n by definition, O(n+m) is O(n).

Similarly, there can be no O(m log m) solution, because you have to read every line in general.

alexfoo 3 hours ago||
Sure, it was shorthand, every algorithm has to be at least O(n) as you have to read in every value at least once. It [Algo (c)] is roughly O(n + (m log m)) but the computation involved generally means that the 'm log m' portion will almost certainly dominate, so the 'O(n)' part is mostly redundant.

A n = 2 billion line input with a valid deterministic solution could have m = 1 billion unique numbers (which means 'm log m' likely dominates), or it could have as few as m = 6 unique numbers in which case the O(n) part will likely dominate. Basic O() notation is too coarse a measure to capture this nuance.

bee_rider 2 hours ago||
O(n + m) is also practically nice to give a general idea of what you mean, without spoiling anything for folks who are still working on it.
speedgoose 3 hours ago|||
Also a big part of the advent of code is to look at the input data and realize that it's not a worst case scenario at all and heavy shortcuts can be taken.
alexfoo 3 hours ago||
Indeed. That's what I mean by "some people just want to get the stars and move on".

Taking a deeper look can provide some very useful insights and a better understanding of the more general problem which often translates into real world scenarios in companies that operate at scale.

Optimising something that sorts 20 values is often pointless unless it really lies on a hot path and is called very frequently. It's more about when something that was written to sort ~100 values suddenly starts to become a bottleneck as the service grows and grows unexpectedly and is suddenly needing to sort 100k values, then 100M values, etc.

Taking this particular problem as an example, I've had candidates who run the complete spectrum from claiming it's impossible to find the top 3 and bottom 3 values without sorting the entire list of frequency counts (one even claimed we'd have to sort the raw input list for any chance of getting an answer), to the candidate that says "...once you have the frequency counts then finding the final answer is just a pair of max-heaps of size 3, but this depends on whether you can hold the set of frequency counts in memory or not, if not we'd have to take a different approach. Also, max-heap might seem overkill, if you wanted highest and lowest you wouldn't use a pair of max-heaps of size 1, but 3 is about the cutoff where manual tracking of the top/bottom values becomes tricky, and using a heap makes it trivial to move to 4, 5 or any other value if that becomes a need in the future".

(To be clear, I've never asked/discussed this specific question in an interview, I'm just translating responses for a similar problem.)

pprotas 4 hours ago||||
Thanks mate, maybe with practice I'll be able to remember all the arbitrary syntax and finally turn into a real programmer
sedictious 2 hours ago||
I never understood the point of arbitrary syntax. Multiplication tables are arbitrary numbers but if your job/hobby is to do long calculations all day I expect you to have them memorised.

I understand now most people don't program much of anything, but sorting a list is really far from arbitrary syntax

CrimsonRain 2 hours ago|||
Real men write machine code only /s
wkjagt 59 minutes ago||
Strange feeling that another year went by. AoC 2025 feels like such a short time ago. Reading all the comments here, and in the context of AoC, I am pretty happy that I never really started using AI for anything. For me AoC is as fun as it's always been. My only change this year is that I am doing it in C instead of Ruby.
t_mahmood 40 minutes ago|
I am doing with Java instead of Rust/Python.

I can never continue to completion unfortunately, because I get too distracted perfecting things that has nothing to do with solving the actual problem and waste whole days. Like today I started fighting with logging errors instead of just throwing it, then realized what am I doing! Ha ha. Once I got that out, it was a really simple problem, I was not even expecting to part two to be that easy. But I really want to complete it this time.

fduran 5 hours ago|||
The Advent of Sysadmin variation: https://sadservers.com/advent2026 (free in-browser challenges, no registration needed. Disclaimer: I built this)
zyberzero 4 hours ago||
Thanks! It was quite fun even though my docker-fu is not what it should be :)
Imustaskforhelp 4 hours ago||
Offtopic but your post finally made me understand or connect why Advent of Code is named what it is.

I think that it is connected to Advent Calendar which is I think related to German traditions (I know this because of Netcup and berohost deals, btw Berohost currently has Advent Calendar which I just observed today)

Yet, I didn't connect it to Advent of Code but because the link that you shared says: " A 12-day Advent calendar of Linux and DevOps challenges of different difficulties"

it finally made me all click! and why Advent of code is named what it is and why its done in december

MyHonestOpinon 3 hours ago||
Congrats! You are one of the lucky ones today! https://xkcd.com/1053/
josu 46 minutes ago||
I can only code with agents, so last year I tried to get all 12 days of Advent of Code to run in under a millisecond combined. Running in parallel, my Rust solvers clocked a median of 0.805 ms.

https://github.com/josusanmartin/advent-25

diego_sandoval 13 minutes ago||
"What man of us has never felt, walking through the twilight or writing down a date from his past, that he has lost something infinite?"

- Jorge Luis Borges

aspizu 1 hour ago|
https://x.com/aspizu_/status/2127818402098266217 - My Day 1 solution in Scratch made using goboscript

https://github.com/aspizu/goboscript - My programming language that compiles into Scratch.

More comments...