r/PowerShell • u/dantose • Dec 04 '25
Advent of code day 3 and 4
Got a bit busy yesterday. I'm currently working on day 3 part 2. How's everyone else coming?
If you don't know what' I'm talking about, it's a coding challenge that runs every december.
11
Upvotes
View all comments
Show parent comment
1
u/Black_Magic100 Dec 06 '25
This is my first year and I'm using python. I'm 8 stars in.
I was looking at my solution the other day and thinking "holy shit this is a spaghetti code full of IF branches and loops.". I decided to look at somebody else's code to see how they solved a problem and learned about enumerate() in python. I now feel like an idiot for trying to keep track of my index position by incrementing a counter within several different branches.
Point being, I think it's impressive just to get the right answer without AI. Most people in this challenge end up with shit code, but that's how you learn. And then there are a few gods who write beautiful code and make us all feel bad lol