Week 1 of AOC 2025
A week has passed since the start of Advent of Code 2025, and I've solved only 2 days so far. I know, I'm not that productive, but work was busy and it was hard to squeeze some time to do all the 7 days, but hey! it's better than nothing, and I've had a lot of fun writing some code in Go.
This is a quick update on my experience so far
Gogs - Self-hosting a git service was never easier
I really like the idea of hosting a git service at home, if you've missed the previous article, gogs is hosted at https://lab.afaiz.dev I'm uploading my git repos there and I'm pretty satisfied with the service, it was very easy and very smooth to set up, I've tweaked the default configuration to disable registration in `app.ini`
[auth] DISABLE_REGISTRATION = true
Day 1 - Rotating Dial
Day 1 was a nice warm-up problem. It mostly involved parsing the input correctly and simulating a rotating mechanism step by step. The logic itself wasn't complicated, but it was a good reminder to be careful with edge cases (e.g. when the initial position is 0).
I solved both parts using a straightforward approach in Go, without trying to over-optimize. It was mainly an exercise in reading the problem carefully and translating it cleanly into code.
Day 2 - Invalid IDs
Thanks for reading!
Subscribe to get future posts via email
Add a comment
Comments (0)
Copyright © 2025 Abderrahmane Faiz