737 points · by saisundar · 6d ago · 666 comments
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.
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.
/output-style explanatory
and /output-style learning
Learning is like explanatory but also reserves parts of tasks for you to complete, then gives feedback.Nobody wants to see your PRs for AoC code.
It took me 20 mins for the first star and an additional 1 min for the second.
Claude took 1min for each star.
Not writing code anymore meant I'd forgotten a lot of syntactic sugar and had to look up even some basic stuff. I'm also a victim of deteriorating human attention, and maybe even 25% of the time was spent on random shenanigans.
The first year (i.e. GPT-4) they could only solve the first few. Today there's not even a point in trying since I know Claude would have the entire month done in 10 minutes and it would be flawless. Scary to think how quickly we've gotten here really.
20 minutes including reading the fluff text, undertanding the problem, downloading the file, making a coffee, writing the code, and submitting the solution?
Because just writing the code really shouldn't take 20 minutes to anyone proficient in their language of choice here.
I created it so I could do 5 mins daily reps to prevent AI skill rot
Also, what is the difference, honestly, between these 2 framings of the same knowledge?
Whether or not that’s valuable is a personal choice. But if someone says they know how to swim, I’d expect the latter.
> to stay sharp
Is this just for the fun of coding or for some other purpose?
[edit: wasn't -> didn't]
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.
"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
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.
I'm not convinced of that. LLMs are incredibly knowledgeable, but (at least in my experience) have very poor judgement.
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
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.)
I cant believe this is a genuine question to be honest.
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.
I’ll even ask the agent to quiz me after major aspects of the impl
The good news is that you can almost certainly learn to program again more quickly than you learned the first time.
Coding is now a solved problem. There is no reason for humans to do that chore any longer.
This is turning out to be quite fortuitous given that model providers have begun sandbagging on this exact area of use.
I don't believe people can have their cake and eat it too. To be good at coding you have to code.
I was sooo rusty even just implementing todays simple bucket sort thing.
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.
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!)
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.
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.
Similarly, there can be no O(m log m) solution, because you have to read every line in general.
The O(n log n) solution seems to me like the trivial/straightforward one: count occurrences, then sort the pairs based on the count. Not sure how to get the O(n^2) without trying specifically to do so (like implementing a sort algorithm from scratch and making it quadratic)
I understand now most people don't program much of anything, but sorting a list is really far from arbitrary syntax
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.
It's not always possible to review all code we run, but c'mon, this is AoC puzzles. If we are trying to solve them, we shouldn't be so uninterested to blindly trust and run third party code.
I guess as a general practice, having a sandbox is probably good though.
[EDIT] Or dependencies. Even if `mathjs` got hacked nobody running my puzzle solutions could get compromised.
Just sounds weird. A better angle would be one of the cool visualization versions on r/aoc.
If I publish the first 16 bits of a 2048 bit RSA private key I'm hardly risking anything.
Here you go, here's more than 16 bits:-
----BEGIN OPENSSH PRIVATE KEY-----
b2Zl6n8za
...Do we actually need to prove that humans will make mistakes or should we just operate on the assumption they will do? Systems used by employees should be designed as such that they account for these mistakes rather than putting the blame onto the employees with stunts like this in my opinion.
One of the more cruel exercises I saw was a phishing email disguised as a bonus for the hard work UK rail staff had done during the pandemic [1].
Where do we draw the line with this stuff? Can we pretend the targets family is in danger? Evacuate an office by sending urgent messages of an imminent threat to life?
I think exercises like this are showing that the security control is in the wrong place which is actually a failure of the security teams rather than the targeted employee. In the described scenario an employee has downloaded and executed code from the internet which resulted in the exfiltration of potentially sensitive data to untrusted systems. This is a failing of the EDR and DLP systems. We can test these without tricking an employee into doing something silly.
[1] https://www.vice.com/en/article/a-train-company-offered-work...
Both obviously, but getting the balance right is the hard part, and you're always going to piss some people off. You just have to do the research to work out where you are going to draw the lines, be prepared to justify those choices, and be open to discussing them and possible moving them.
(I have to be a bit vague about the next example, it's not as trivial as it sounds but explaining more would leak more information than I'm comfortable with.)
One of the biggest outcomes I've seen in a company was around the bureaucracy involved in getting various bits of software onto the pre-prod servers for testing and evaluation prior to deployment on prod. There were lots of controls in place which took time but the users were annoyed as they often had to try a whole bunch of different options before they settled on the one they wanted.
The end solution was to introduce another tier which ran on a scorched earth model. Each instance in this new tier was isolated but users could install whatever they liked without needing any kind of sign-off, and when things were done it was all securely trashed. It took a lot of work on automation, generation of fake data, etc to get to that point but the reduction in friction was a huge win. The users felt way more productive and were able to narrow down the options much faster and were more prepared for the subsequent process required to get it into pre-prod.
The users never thought to ask for such freedoms as they expected the company to apply similar processes/vetting/security to any new infrastructure, especially as it was impossible to do realistic testing without realistic looking data, and they had no fake data streams. The security teams never thought the company would sign off on the work required to get the new tier up and running (the fake data aspect was a lot of work). Management feared change and wanted to stick with the status quo.
> This is a failing of the EDR and DLP systems.
Most of my dealings in this area are with companies that aren't mature enough to have these types of systems in place. In an early startup stage people are not espousing Zuck's "move fast and install deploy EDR and DLP systems" mantra.
How do you protect an office full of mavericks? A series of soulless online learning courses rarely works. Towards the other end of the spectrum are shock tactics like the security exercise detailed above. There are plenty of other options inbetween obviously.
https://www.espn.com/nba/story/_/id/50258240/report-knicks-c...
tldr; phishing test email to MSG staff to claim their championship ring for being part of the franchise
Without informed consent, this is grossly unethical.
So here’s my question to you: What measures were taken to ensure only employees could reach this repo? Was it on company private git servers?
There is absolutely no need to take any measure to ensure only employees could reach this repo. Just like internal phishing tests are hosted on public web servers. Code on GitHub isn’t inherently trustworthy.
It doesn’t matter too much, but for the record, I don’t agree with your circular argument.
It’s kind of like saying: since all pick pockets are untrustworthy, stealing wallets isn’t illegal.
They did write this, so I assume no real credentials were stored/logged.
Hyperbole. The credentials weren't stolen. It wasn't much more than the presence of specific credentials, with very partial information to demonstrate the point.
If I write something that reports that you have a github session key in an env var and an amazon aws session key, have I leaked your credentials? Metadata, yes. Credentials no. "User X has a github key" does not get me or anyone else access to your account. There's a reasonable bet that the vast majority of people on this forum have a github session key somewhere. (Sorry everyone for leaking that information.)
If I capture just the first bit of each of those keys, have I leaked credentials? Hard to say this is any more useful than just metadata about the fact a key exists. (For everyone that does have such a key I now apologise for leaking the fact that half of you have a 0 in the first bit of that key. Sorry again.)
If I capture all but one bit of those keys then I have definitely as good as leaked those credentials as enumerating and testing all of the possible full keys is trivial.
Where do you draw the line for a realistic "leak" of a key rather than just metadata?
If I capture the first 16 bits of a 128 bit key, or hash the key and report that, is that any use in the real world? Nope, the remaining key space is still too vast for it to be a concern.
> Without informed consent, this is grossly unethical.
Agreed.
For the people running it on company provided equipment, or BYOD equipment enrolled for use accessing company data, there is explicit consent in employment contracts and acceptable use policies.
Most employment contracts have clauses such as "the employee shall comply with all Company information security and data protection policies", "refrain from installing unauthorised software", "The employee shall take all reasonable measures to keep Company Equipment (including laptops, mobile devices, access passes, keys, and tools) secure and protected against theft, loss, unauthorised access, or damage."
Finally there's usually something like "Subject to applicable law, the [Employee/Contractor] may be held liable for loss or damage resulting from negligence, deliberate misuse, or failure to follow security procedures."
(Source was asking Google AI for "example contract clause use of company equipment in terms of security")
Taking a link noted as being third party code and deciding to run it on your own computers without vetting it is beyond the purview of the company's security policy.
I'd agree that would definitely be grossly unethical if the full keys were reported, but that wasn't the case.
I guess it's like the telemetry debate. Opt-out, or even just a "ping the server to check for the latest version" leaks metadata, and some are vehemently opposed to it.
> So here’s my question to you: What measures were taken to ensure only employees could reach this repo? Was it on company private git servers?
It couldn't be on company private git servers as that would have been too obvious for the phishing exercise. "Hey people, try the code at https://github_com/OurCompany/Sec_Team_AoC_Phishing_Repo_Dec_2026_FINAL_FINAL_THIS_ONE_v1_4/"
The link to the repo was only posted on an internal slack channel and the repo was removed at the end of that day. There's no evidence it was ever posted anywhere else.
The collection URL was disabled when the repo was removed.
The server/domain were kept (with information scrubbed) for future use (in other projects) so they could never be registered by someone else.
There was never a hit on the reporting URL from anyone that wasn't part of the company and this exercise.
As far as I know there has never a hit on that URL after that day and it was monitored for at least 3 months after the exercise (probably longer, that's just the limit of my knowledge).
It's clear you put significant thought into this.
Personally, even the remote possibility that a member of the public (or a member of law enforcement) could stumble upon this code would be a risk I would absolutely not take. They have not consented to anything.
As a thought experiment: Imagine being in a 3 person meeting with your CEO, your chief legal counsel, and yourself where you try desperately to explain what caused you to take this risk on behalf of the company.
The former is indisputably malware; the latter is pedestrian crapware.
Real malicious attackers do not care if something is a "dick move" or not. In an alternate universe the great company you work for might have to shut down because someone didn't think properly and ran something which compromised enough company secrets to cause its collapse (financially, reputationally, whatever). Then people will say the dick move was the company not educating its employees well enough, or not putting in strict enough controls to prevent it happening.
This is not justification for companies pulling arbitrary dick moves against its employees, but many people consider much of the policies around security to be borderline dick moves due to friction, process, bureaucracy, etc. It's a fine line that's always going to piss some people off.
Talented and experienced developers who should know better fell for something that could easily have been a significant threat because their guard was down due to familiarity or doing something "fun" like AoC. Many of them on a work machine. In an account with live company credentials. In some industries/companies that's gross negligence and you'd be out the door in a heartbeat.
No individual was chastised but it made everyone in the group think about their actions and possible consequences. We didn't call out the people who fell for it because there was no point doing so. We didn't call out the people who didn't fall for it either, for the same reason.
There's also an aspect of humility as I know I've done similar in the past and got away with it only by the grace of $DEITY. It's certainly changed my behaviour. Yes spinning up yet another VM, installing a bunch of packages, vetting the code, etc just to be able to run some random code is a pain but it's a lot better than the alternative. It also makes you automate some of that setup to reduce the friction as much as possible. Fundamentally I still don't want to play Russian Roulette even if the revolver has 999999 empty chambers, there's still one bullet.
(I don't work there, this was part of some consulting gigs that I sometimes help out on so I could pop up anywhere. I just saw the programming/AoC channel as a great attack vector, and I love AoC too. At that company there were other targeted campaigns for other specific departments such as finance/marketing, each using something that those employees were overly familiar and trusting about - but I didn't work on those bits.)
You never get thanked for helping prevent a possible breach, mostly because it's impossible to prove exactly what helped prevent something that didn't happen from happening. But you certainly get heat for failing to prevent one that does happen.
> I wouldn't even have a beer with you after such an ass move.
I respect your decision. I get called all manner of things due to certain jobs I've done over the years, those without a thick skin don't last long in these kinds of jobs.
I happily have a beer with anyone who saw this as a dick move, and happy enjoy a robust discussion about the ethics and net benefits, but each to their own.
This part is stupid. Is this a very large company where people on the internal slack are indistinguishable from bad actors?
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.
I had autocomplete in the terminal, automated alias' everywhere, scripts that would copy templates, etc. etc.
All of that stuff is useless now, or atleast has been entirely replaced by AI. What i'm saying, is sure, you hard code, and don't let AI touch your codebase... that's fair. But to not use AI at all seems... just like not possible nowadays.
EDIT: I actually enjoy it that way, and purposefully stay away from AI. I am not telling anyone else to do the same, it's just what I personally enjoy. If I need information on something, which is often, I know AI can get it for me much quicker, but since this is a hobby now, I don't care about quick (quite the opposite actually), you can still find most information on the internet (blogs, youtube, manuals), and even man pages are still great.
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
We have what I would translate to “Christmas Calendar” which is something that counts down the 24 days to Christmas. This can be two pieces of cardboard with little gates perforated and you open one everyday. It can be a candle with markings and you burn 1/24th every day or even a TV show filmed in 24 episode for the purpose. A box of 24 pieces of chocolate seems to be the most international recognized version of this.
These are often translated as “Advent calendar”.
But what we call an advent calendar would be something that counts down the 4 sundays leading up to/possibly including Christmas Eve. We usually have an advent decoration with 4 candles and one additional gets lit every Sunday in advent.
Here in Austria we call that "Advent(s)kalender". I thought Germans used the same word? What do you call that?
> But what we call an advent calendar would be something that counts down the 4 sundays leading up to/possibly including Christmas Eve.
We count the advent sundays. I have never seen or heard of a calender that counts the days from the first advent sunday to Christmas.
do you have a reddit or a dedicated page for that, like AoC do? you know, to gather a community
I am using literary programming in MarkDown where I use an application to collect C code fragments in one or more MarkDown files and put them in the correct order to be compiled. See: https://github.com/FransFaase/AdventOfCode2026
Still, it has some of that good old C feel.
I would love if a side effect of LLMs is a revival of literate programming.
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.
I've learned so much over the years so I'm glad I can help others do the same!
Thank you to the creator!
I always enjoy getting a first solution, then improving it to be more readable, and then being flabbergasted when I look up online how others are solving it.
I'm keen to learn more strong typing languages, open for ideas.
Definitely noticing things I have to improve in the language and IDE to make it smoother.
I got to 20k or 30k of handwritten organic C with working e2e programs.
But early this year gave up and involved some agents to draw the rest of the owl. And it took off to something that can compile reasonably sized and useful programs.
It felt a bit wrong, but the advantage is that I can get a better feel for the language while using it.
I have this funny belief that sounds something like this: learning happens fastest when the next adjacent step is within a certain mental distance. Too far and you just get stuck. Too small and well you don’t learn something new.
And for me, Advent of Code has simply been too big of a mental leap.
This year I’m excited to try it with Claude! An attempt to shrink that mental distance. The risk is it becomes too small and I learn nothing.
If there’s others here who want to compare notes on their process or have suggestions I’m all ears.
1. If I'm stuck, take a break, go cook dinner or something else and mull over solutions in the back of my mind for at least an hour or 2 (better yet, sleep on it). If I'm still stuck after that, I'll ask AI for a hint.
2. I have in my prompt to not give away the answers, but try to give me little hints.
3. Always write the code by hand.
4. Once I've solved the puzzle, I have AI review the solution and suggestion improvements or other techniques I could have used.
https://en.wikipedia.org/wiki/Zone_of_proximal_development
These comments are full of experienced engineers (myself included) who are excited to get back to coding by hand and would get nothing out of this if using claude. So it's cool to see someone approaching from a different angle. My 2¢, LLMs make it easy to feel like you're learning more than you actually are. So I would consider setting as a goal that by the time you've completed a challenge using claude, you are confident that you could do it again without claude the next time.
Here's my prompt, give it a try if you're curious!
"can you help me learn what's going on in the first advent of code. like don't give me the answer at all, the point is that i learn something. so....maybe you can ask me questions to figure out what i know and don't know. and use this principle to help me: https://en.wikipedia.org/wiki/Zone_of_proximal_development"
It reminds me of reading a C book as a kid in the library. I didn't even have a computer but I enjoyed writing the programs on paper and imagining how they worked. Honestly, my coding ability probably hasn't progressed all that much, but the joy is there.
I invite folks to try this, even if you're like a super experienced programmer. And tell me if you have fun with it or not I'd like to hear either way.
There's a leaderboard too, come join! https://advibe-of-code.github.io
Thank you for the kind words of encouragement!
You're spot on, this sweet spot is also one of the premises of the book Flow by Mihaly Csikszentmihalyi
One year you had to build some sort of upcode parser, which I guess mimics a theoretical computer processor, but as someone who learned programming by glueing things to gather and eventually writing instead of glueing it does become nearly impossible to crack those ideas.
Because the later days require knowledge of specific algoritms and is not something a regular human can figure out by themselves.
- Jorge Luis Borges
But yes, I did also have a brief pang of whatever emotion that quote conveys.
Not if you want to make a living out of programming.
I love the fact that AI exists and makes us much more productive, but at the same time, I mourn the loss of programming as a career and as a competitive advantage.
I'm making a living as a programmer and I haven't used AI a single day of my working life
Citation needed. I think the biggest impact is likely in the startup world where you have finite resources. But in a production or enterprise setting, manually building out systems is still highly valued especially when everyone else is deskilling.
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...
That said, for the rest of the days maybe I'll describe the algorithms I think should be used rather than just giving AI the problem statement, and let it handle the nitty gritty implementation.
For me, the original motivation behind coding was that computers are easier to understand than people, software is irresistibly complex, and I love to build cool things.
As I've aged, it's mellowed to "I love to build software to help people get their work done." So I've been able to progress through the stages of grief at a moderate clip, I guess.
I could have written your comment. I still like to write code sometimes but I'm also relieved to have what is essentially an amazing junior programmer at my disposal for the grunt work, and something that knows enough about most programming related things that if asked the right questions will point me to the answers I need.
It is a kick to have someone say how much easier you just made their life.
Maybe you just don't like writing the kind of code AoC is looking for?
AoC, to me, was never about writing code but more about coming up with algorithms and solving mathematical or logical problems. The code was just a means to an end.
One type of code I enjoy writing is mostly around designing and building architecture that encapsulates complex business logic in an elegant way as well as de-tangling (often legacy) spaghetti code and moulding it into something more maintainable. This kind of code is also something AI is vastly incompetent at.
The same as when you were coding, the programmer that knew how the computer works or how memory management works wrote better code, you will build better things if you know how to code
>The same as when you were coding, the programmer that knew how the computer works or how memory management works wrote better code, you will build better things if you know how to code
I still know how that works. I don't write in machine code to get closer to the metal.
In the popular languages of the before times, absolutely. Turns out I didn't like python, I just hated it less than the alternatives.
Now solving the advent of code with an interesting language (say forth or MMIX) is surprisingly relaxing. The same way that whittling a spoon is.
That is why I call myself a reformed programmer, instead of a DevOps engineer.
But, I did Day 1 in Free Pascal, using the FP TUI IDE they provide. I did the first pass and was happy to remember how interesting Turbo Pascal and C were to use for debugging code. After finding out I still can't "whip through a simple sort," I ask AI to do a code review. I found a few things in Free Pascal's objfpc mode that I didn't know about, and a few edge cases that weren't in my input data but could have been bugs. In the end, after a few trips with AI, I like the refactored code, but enjoyed the learning part more.
I also need the freedom to decide what to build and how to build it. I could see how being told what to build AND using AI to build it could be mind-numbing.
Coding as problem solving is fun, but coding for building an app is 95% boilerplate and 5% problem solving. LLMs automate the boilerplate and gives me time to focus on the fun stuff. IMHO.
Because that’s close to the sense of “building” with an LLM.
No, it wasn't very bad.
Last year my code was always simpler, as in smaller and/or easier to read, and never had a long runtime. The AI code is harder to read and understand, solves things not in the task and sometimes has a much longer runtime (in seconds, I don't care about milliseconds). This year on day 2 I'm seeing again a way more complicated solution from Opus 5.5, where I just added a single line to go from part 1 to part 2.
It's nice seeing that I still have the skills and generate something that looks better to me as a human.
Which makes those code puzzle and private fun projects even more important. Because you still have something where you can connect to the code. And in the end it might still help in the job when someone has to look under the hood of the engine.
I'm gonna see if the old noggin' still works.
I just set up a private leaderboard for my workplace for everybody who wants to join and it usually turns out to be pretty fun and have decent attendance.
One of my companies even sponsored giving out rewards for whoever at the company got 1st/2nd/3rd place.
Usually probably 80% of people churn within the first week and by the end only a few people are actually completing the challenges.
Probably harder to justify now though with AI, since we can't prove somebody used AI or not, and giving out rewards always adds incentive to cheat.
And yes I know there’s all sorts of scandals in online chess with just using the engine for key moves, but at the end of the day most people don’t come near the leaderboard and there’s not a strong competitive community AoC is trying to police
People are pretty lame
FIRST!
/S
Like, I'm treating this as a full project, and adding all comments/docblocks and everything. It's pretty fun this way, for me.
https://github.com/aspizu/goboscript - My programming language that compiles into Scratch.
I played Opus Magnum a few weeks back and it was the same exact feeling. The glyphs make it seems like dealing with arcane knowledge instead of the calculus feeling of functional programming and the checklist feeling of imperative programming.
So while Advent did indeed already start, the website is in fact honoring the tradition of Advent Calendars.
A good part of the challenges require specific knowledge to solve so it wasn't about code but specific algorithms, math, shortcuts to skip brute force, etc.
Coming up with the right algorithm is what people usually find the most interesting about programming puzzles.
Some of them are very specific. You either remember it if you had the chance to stumble upon them during your studies or you research the specific math required to solve it.
Maybe I have the wrong expectation but I would like for all of the challenges to be feasible without heavy math.
Take this for example: https://adventofcode.com/2019/day/22
You are given a deck of over 119 trillion cards and must shuffle it over 101 trillion times using three specific shuffling rules, then find which card ends up at index 2020.
Simulating the deck in memory is impossible. You need modular arithmetic and maybe linear congruential functions to do it.
That doesn't sound like "Advent of Code" to me.
For https://adventofcode.com/2023/day/18 I needed the help from a mathematician friend of mine who hinted me at gauss's area formula.
Maybe Advent of Puzzle would be a more apt name.
fro mthe top of my head:
Advent of Problems, Advent of Challenges, Advent of Software could be more encompassing names. I'm sure there are better ones.
Having said that, since I am language creator
https://desireco.github.io/zhex/advent-of-code.html
I will post solutions, but few days after. I use AoC to tweak and test my language features and to discover places how to make it more pleasant to use.
If you want something fun to do, try Zhex for your AoC adventure this year. It is pleasant to look at, compiles to Wasm and is fairly performant, a little slower then Go.
Or maybe using git primitives, fitting the computation using its data representations and functions. Or maybe bitcoin transactions (using a private simulated network obviously). How about going analog ? There must be something in my bookmarks about people using dominos or radio waves to do computation.
https://www.reddit.com/r/programming/comments/1y9m6dd/commen...
Not too crazy, but still quite challenging and very different from the plain "run the python script" that most people do.
I don’t think google sheets itself was the limiting factor on solving more of the puzzles (but rather effort). There was something I found uniquely satisfying about working around a constraint like this to solve what probably would have been a single line of python.
I'm taking an alternative approach: I plan on designing a new programming language for each day and having the LLM build the compiler for that language as well as the solution: https://github.com/jdan/advent-2026/tree/main/01-dusty-shed
I don’t have an analogy for your idea of building a language each time. Hope you have fun and learn something, though!
https://blog.carolina.codes/p/advent-of-code-2026
If you want to flex your brain we'll be giving away 20 tickets this year.
[vi|emacs] day1.[py|c|sh|rb|pl...]
Don't use an IDE unless you want to use it to learn your IDE - just use a simple editor, none of the problems need advanced IDEs to solve. Use a language you like, or you want to learn. Don't use AI, unless you're trying to figure out how to build a spec-driven harness from weird and esoteric problem statements.The point of AoC for me has always been, and always will be (while it exists), to have fun coding. I don't want it to feel like work. I don't want help. I don't want to write a HLD doc, or a spec, or get around a whiteboard unless a bunch of us are going to have fun debating a solution.
It's just me and some code solving a fun little problem, and then another, every day a puzzle gets published.
It's joyous. IDEs rarely add to that.
It sounds like a lot but it's really simple, and the net effect is you get to just read the problem and go.
sort |
uniq -c |
sort -nr |
{ head -3; tail -3;} |
sed 's/.* //' |
paste -sd'**\n' |
bcIt's like constant roadblocks in my flow.
Or not, if that's your thing
- Settings > Tools > AI Assistant > Project Settings
Uncheck "Enable AI Assistant for this project"
- Settings > Editor > General > Code Completion > Inline
Uncheck the "Enable inline completion using language models"
Or set "Provider" to "None" and optionally uncheck "Use local model".
~ # vim main.c
:-)
I started typing: 'struct BestSolutionSoFar {‘ and that Autocomplete suggested: 'entries: [(u64, u64); 3]' which looked suspicuously specific.
So I started to type a comment as test: 'let's help the elves ' and it went ahead and wrote the entire story of day #1. I think it guessed my intention from the crate name alone.
Totally sucked the fun out of it. It's impressive and creepy at the same time.
On the upside: I solved the same challenge for 'no_std' and 'const fn main()‘ and had quite some Schadenfreude, watching the completion fail on almost every line.
Starts off very easy as usual
Anyway the first problems are always easy, the second day this time is a bit too easy, since it's basically the opposite of the first day: calculating a maximum becomes calculating a minimum, and it just required flipping two conditions on my code.
“I know Python and R” -> “use X and it’ll blow your mind”
Software has traditionally been hard and rapidly changing, which made it an economically lucrative skill to have. It is quite apparent now that AI is commoditising this skill. A good comparison is tailoring in the early 20th century, which shifted from a high-skilled craft to a mass-produced, low-margin commodity due to rapid industrialisation. There are more clothes being produced today at a higher quality and lower cost than ever before, yet “tailoring” as a skill has little to no economic value, and hence we have fewer tailors.
This is a convoluted way of saying money flows to bottlenecks and it is rapidly flowing away from writing code by hand. There will be more innovations and hence more value created by AI - but it will not be owned by people writing code.
That being said, like in the case of tailoring, there will still be a few passionate hobbyists who enjoy the bespoke art.
I tried Claude and said "don't give me the answer, ask me questions so I come up with the answer, without code."
I did a voice conversation with Claude to solve the first one. Holy crap it was fun. I took the transcript of my conversation and made this: https://advoice-of-code.github.io/#/s/titojankowski-d1
It's a combination of Socratic Method and Zone of Proximal Development (ZPD) philosophy. The idea is that you figure out the solution yourself.
And I added a leaderboard if anyone else wants to try: https://advoice-of-code.github.io
I like that I can read your transcript. Some feedback:
- Claude is much more verbose in that transcript than I expected. That makes sense in retrospect, since the prompt is about learning. I might want to change the prompt so it structures technical train-of-thought into a proposed solution. Different vibe, though.
- I'm not sure how much knowledge transfer is happening at the beginning; you're clearly (and reasonably!) having some trouble holding all the logic in your head. Personally, this is a case where I find it much easier to have everything written down and see it all at once.
- Claude going into bigO was great! You'd think that it's too much for someone just learning, but in my experience that's actually exactly what you want to hear when you're wrapping your head around programming and algorithms. Without that kind of background, a lot of what you're doing can seem too abstract, or like you're not really able to see what's happening under the hood.
- Why not have Claude show the code? From a learning perspective, that seems like a good feedback loop. Once you get the star, Claude could display the code and then step through it, tying each section back what you described.
- Claude didn't catch that you didn't do the one-sentence statement of the puzzle. Maybe have the initial prompt from Claude be: "read today's puzzle and describe it to me in your own words"?
I've edited the prompt to make it even clearer to Claude that I don't it to spoil the surprise of figuring out the answer myself.
Good point about seeing the code at the end, I added that in, will try for Day 2.
But I actually think it can play an important role in two ways. First, as a reminder, specially to less technical people like myself, of the challenges and complexity involved in what we now take for granted.
Second, as a (re)spark of passion. People still journal with pen and paper, solve jigsaw puzzles, play solved games like tic-tac-toe with each other and paint portraits that will never match the "quality" of a digital photograph, and those activities are almost universally regarded as healthy and even romanticised a bit.
Maybe now that advent of code no longer works as much of an employability signal it can actually be purer, even if it's a bit sad that we won't ever again have the healthy and impressive (to me at least!) competitiveness of the pre-LLM days.
To me, intellectually challenging oneself is itself an employability signal. Not a requirement and not a guarantee, but a signal. When I hired for such roles, I would ask candidates if they had ever participated in Advent of Code, and if the answer was yes, that led down a whole other line of questioning around favorite problems, toughest problems, learning, etc.
We now look for candidates who practice a healthy work/life balance. We've found that our engineers are productive when they allocate time to their families and hobbies. While we don't penalize anyone for personal software projects or hackathons, we don't attribute much weight to them.
Another thing we've done is simplifying the interview process. We used to have 3 rounds, now there's a culture interview and a single engineering interview of about 2 hours. During the engineering interview, we ask people to review some code and collaborate with refactoring / feature expansion of a fictional project.
I'm not sure how scalable this is, but it has served us well so far.
If they want to waste their time putting claude to the task and having an answer in 30s, then that's their decision. It has no effect on people who want to undertake the challenge manually
I definitely feel bad for them, but maybe it’s time to revisit the utilitarian part.
I’m still doing advent of code by hand. But I also do a lot of baking, knitting, weaving, etc. I don’t see how hand coding is any more hollow than, say, knitting.
I don’t think LLMs change much in this regard. Though this year I’ll likely be using an LLM after finishing a solution to go deeper on the problems and algorithms to extend my learning.
It’s going to be really interesting to see the approaches and techniques of winning solutions with LLM assistance.
More excited for it this year than I was last tbh.
I still think it's important to know how to code. I still think a better programmer produces better software. I still think solving logic puzzles is good fun and good exercise for the brain, for which code is simply an expression medium.
If your instinctual reaction to Advent of Code this year is "what's the point?", you need to do a good hard think about why you feel this way, what got you excited in previous years, and whether your current reaction is well-calibrated to reality.
Don't let that take away the joy of self discovering solutions, or learning better algorithms/logic.
I myself cannot finish all the days, but its a very good learning experience, by self, aided by AI, or reading other developers solution.
Lots of the fun for me was solving the puzzles and then discussing them with others.
Less people doing them means it's less fun. The people doing them just reiterating what their LLMs said makes it less fun.
On the other hand, the top comment here mentions AoC supposedly having been an "employability signal". Reading this forum these days, it does occur to me that I might have severely overestimated the share of programmers that like and enjoy programming. Maybe everyone really hated programming and only pretended to like it for economic advantage.
Fortunately, HN posters are not actually a representative sample of working programmers.
I think programmers are the proper level of demoralized. As are artists, musicians, writers and everyone else for whom human expression still means something.
Where you run into trouble is by visiting the leader boards and thinking about it as a contest. I did that my first time around and it ruined things for me. Now I realize that the whole format is not a great competition for typical programmers, since all the leaders wait for the exact instant each problem is released and then scramble to solve it within a minute or two.
That’s led me to dismiss the whole competitive angle and think about it more as a solo experience, which honestly fits the theme of advent calendar much better!
Almost certainly not, because there is no point in doing so. Solving AoC quickly with AI will not get you anything. You would just do the same boring thing you are already doing at work, but unpaid. It's like buying a sudoku puzzle book, only to solve all the puzzles with a sudoku solver. I makes no sense to spend the time and the tokens, as there is no reward in getting the answer itself.
(oneliner; echo '**p') | dc
Too easy!Edit: sub head for tail for the second half
https://forum.ada-lang.io/t/charity-advent-of-ada-spark-2026...
Day 1 gave me an opportunity to play with Python's `collections.Counter`, turns out it has a `.most_common()` method that you can use to return most frequent elements. Neat!
But that actually was fun.
But I have almost never used awk, so don't blame it on AI brainrot! :)
I just can't resist the leaderboards, which means pulling the problems as soon as they are available.
This leads me to trying to perform maximally at 11pm, which leads me to not being able to sleep until my mind is less active.
Now I just have to wait until the whole thing is over and do the month all at once, with no competition.
My personal relationship with it aside, I love that it exists.
Picking up a competitive challenge at 11pm just wasn't working for me, but the actual competition was fun.
Before then you can solve all the problems using the standard libraries of the common languages, but for that problem you had to use some specific tools, which make many of us feel disappointed.
( I enjoy AoC a lot, but the first week is really just an exercise in typing speed. Or perhaps warm-up on the language if you're using one you haven't used before. )
The curious thing is, are other professions distributed in such a "long tail" way? Like, being of average (mean) skill, puts you significantly above the 50th percentile.
Perhaps if I knew more about construction or economics or something I'd notice it there too. Perhaps one has to be above the mean in skill in any given field to notice it?
Today was great because I could use a python library for the busywork and the [-1] feature of list traversal.
Do all the negative people in the thread here and reddit also just take a picture of the Sudoku puzzle in their newspaper and as Grok to solve?
On a satirical side note, someone should release an Advent of Vibe Code, featuring, but not limited to:
- one-shot a new operating system kernel
- rewrite a bank's system in Rust
- build a spreadsheet where every cell is an autonomous agent
So, I can't play then?
Github is free and you'll probably need an account with them at some point, so why not register there?
I created one specifically for Advent of Code a few years back and still using it (and for nothing else).
You can even create a new one each year, or for each day.
Guy posts a bunch of interesting chess puzzles
Here: Let's see what Stockfish can do
Of course you can use AI to solve the Advent of Code, but what's the point? That's not even a clever hack, it is the obvious thing, and there is no global leaderboard anymore, so you won't gain anything by doing that.
Maybe if you are a complete noob in AI coding and want to try it out, or maybe you want to challenge yourself with tiny models, but otherwise, wasting Claude tokens on it seem a bit childish.
BTW you can become a sponsor, too.
I can only hope it works as a wake-up call, especially if you are supposedly a “senior engineer” or in any role “reviewing the AI slop”.
And if you use AI for these challenges…don’t bother. The leaderboard is gone. These are puzzles for people that care and love the craft.
Instead of asking people to solve a simple puzzle, you could ask them to implement the best object storage system, or the best compression algorithm. We could get some way more interesting competitions out of it.
I should turn off Intellisense...
Or just use Notepad++ or something... Like a cave-person...
https://joshmoody24.github.io/skoobert/?example=advent-of-co...
All my co-workers use cocaine to get through their workload faster, I should learn how to use it too!
My boss has tried cocaine and now he thinks he can do everything so he fired the team.
Etc...
A short, creative vibe coding puzzle. The first one is Slop Aquarium.
The AI labs always need more training data, and that dataset has good value: - the same problem with multiple solutions in various languages - authors are linked to leaderboard
Approximate any learnings along the way in a tight blurb."
I’d like to take a moment to imagine what the conversation would have been like in 2020. Discussing the actual content.
I agree that AI is too heavily discussed though. Before I think we'd have seen more discussion about the language people decided to pick up for the year, or such.
On that point, does anybody have an interesting setup? Previous years I tried to use something unusual as many days as I could, like SQL only or assembler or Prolog or something from the APL family. Usually would end up with a regular old procedural language in the later days though.
Day 1's solution in TinyAPL
It can go surprisingly deep if you add some constraints.
How would you solve this if the input was always small (i.e. somewhere around 20 lines)?
Could you make your solution much simpler if you just had to find the single most common number in a list?
How would your solution change if you had to find the n most common numbers in the list?
How would you solve this if you had finite memory which meant you could only hold a given number of the unique numbers in memory?
a) With no local/disk storage, but the ability to rewind and reprocess the file as many times as you like.
b) With access to local/disk storage large enough to store a file or files with total size around the original input file size.
How would you solve this if you had to process the file as an input stream (i.e. you can't rewind or replay it) and output the answer every n input values? (But there are no memory constraints.)
...
All of the above have different nuances which mean what works for one does not work for another, or is complete overkill, etc.
In the Day 1 case, would the entities be the numbers and the component be their count?
Spending half an hour reading through insightful comments on a topic you wanted to know more about used to feel like an educational and intellectually engaging activity. Now that half the comments are some variation of "I just used AI to do this", though, not so much.
So frankly, what are you looking for? This is a thread about boomer coding academic problems. The easy blackpill response is to say "what is the point?". opus 5.5 can oneshot the answer for all 12 of last years problems in literal minutes.
I am responding as someone who has done AoC for 7 years now. I realize some have their full star boards but I am no noob. This is just the state of our industry and you begging the question and not addressing the elephant in the room is odd. People are not happy about their job security.
"If you want practice prompting an AI, there are almost certainly better exercises elsewhere designed with that in mind."
What a strange analogy. AoC is delightful and fun. He might as well have used the dentist!
Oh well, different tastes I suppose :)
The agents do the work and we do the enjoyment.
For example, I don't feel angry that the elevator taking my job of lifting myself and my heavy items to the top floor. I don't think about it at all, really. Only when it breaks down do I think about it.
People feel accomplishment and pride in lots of things they don't directly labor over. Index funds performing, home equity growing, their sports team doing well, playing a video game, fantasy football, aging wine, etc. etc.
To the degree that the advent of code challenge can bring about a flow state [0] in a person, "the work" is "the enjoyment." For many folks, flow states are not found in what they do to earn money and so they perform activities dubbed "recreational" like rock climbing, snow sking, video gaming, etc. For folks with a certain mind, until the near future they could get paid to do what they enjoy, a wonderful Ikigai [1] condition.
No, AoC is for enjoyment. Pointing your agent at AoC is asking your agent to have fun solving programming challenges while you go do something else.
(Disclaimer: This comment was entire made up as a joke, on the spot)
A real lack of creativity and willingness to update. There are still interesting problems that would challenge a human working with a coding agent.
It's a dude making interesting problems for humans for free, if you don't like it, well then just don't do it. I'm sure someone else can make 12 days of vibecoding if they want.
It makes no sense to continue this since the cheaters will just spoil the point of it all.
EDIT: There we have it. The truth is, at least one person is going to use AI and then will eventually ruin the answers for everyone.
Genuine question: How does one "ruin the answers?" You'd have to go out of your way to find solutions. If someone is doing that, they didn't to begin with. It's a fun puzzle, for fun, because I miss having fun writing code.
The leaderboard doesn't exist anymore.
99.99% of users did not. If you did, I am sincerely sorry for the loss of your hobby of speed-coding. It is gone. I am kind of nostalgic about the early mornings were I tried to go for the top spot of my private leaderboard. But oh well, nothing lasts forever.
I turn it off on the LinkedIn puzzles, as I just want the fun of doing the puzzles.
I'm on some AoC private leaderboards but I never looked at the global leaderboard, and I'm glad it's now gone.
I'll therefore continue to have fun, and not care about the people using AI to solve what are relatively straightforward coding puzzles.
If somebody boasted to me about using AI for AoC, I'd just make a note to never work with that person if I could possibly help it. I'm serious: you'd have to be a psychopath to do that.
You make it sound as if there is no choice. You can participate in AoC and solve the puzzles yourself.
Previously these were quite similar to work, and I might as well just work a bit instead. Now that work is mostly AI-assisted, these become a nice distraction.