Advent of Code 2022 Week 1

Christof Reimers

216 words, 2 mins

Ok, one week of AoC has passed, what is my conclusion.

So, what did I do differently compared to last year? First things first, I used JavaScript, not Java. This makes a big difference, as I personally think I can keep JS code a bit leaner and can write it faster, although I am obviously not as experienced as with Java.

I learned a few interesting things. I definitely understand the .reduce function now, although I don't think I would come up with code like the one to transpose matrices like on day 5. That code was crazy short and efficient and I love it. Although it obviously need some time to wrap my head around.

Today I fixed the codestyle, not using snake case anymore. I don't know why I started with it, but as it's more or less in official style guides to use camel case, I will keep my fingers from snake case.

So looking back at this first week of AoC 2022 I can say I produced some messy code (todays first solution), some really short code (day 6), some heavily shortened after the first solution code (day 5) and some really confusing, unreadable code, that was definitely not created to show that the actual code isn't really that long (day 3).