The Advent of Code [blog]
At some point in mid-2019 I discovered the advent of code and when it was released for 2019 I thought it would be a perfect chance to play with some code by way of simple(ish) challenge.
I think these next 25 days of puzzles are a perfect place to practice a programming language. I use it partly to keep the creative side of my brain active and to also practice a language that I don't use all the time (it also makes for a good distraction from work if I'm needing one).
Last year I decided rather than keep things straight forward I would attempt to each the two daily puzzles using the transformation language JQ. I wasn't able to solve them every day and tried to avoid the solved any hints, but I did get to day 16 but I was starting to eat into the start of January so decided I had had enough fun.
Below is the solution using jq which had some native functions to do the job "easily" and yet the data being consumed was way too much so I needed to rethink the entire approach:
And if you want to poke around my code to see how I've done things, here's the git repo that I'll update as I go along: https://github.com/remy/advent-of-code-solved/
Originally published on Remy Sharp's b:log