I finished Parts 1 and 2 of Day 15, and I’ve managed parts 1 of Days 16 and 17.
For each of the unfinished part 2s, I know roughly what I solution should involve,
but I’m struggling to get there.
The goal of this exercise has always been to learn more about rust and to get some practice using it.
I have definitely done that: day 15,
in particular, involved writing two impls of a trait I created,
one for each part.
Thinking about what should be in the impls for the structs, and what should be in the trait,
as well as what I can provide default implementations for, was a really interesting exercise.
Actually, one of the parts of this whole exercise I enjoyed the most was writing the coords module
that I used whenever I needed a representation of 2D space.
The design challenges of creating a flexible and reusable utility module was really interesting,
and probably the most useful thing I learned.
In one of my earlier posts, I commented that I wasn’t particularly enjoying writing rust; that I was spending a lot of time battling with the borrow checker. I think after a certain point, it did start to click, and I have spent a lot less time doing that kind of thing for the last couple of puzzles. Rust’s finnickiness is still sometimes a hindrance, but once you get used to the way it works, you can often work around its constraints without much effort. Rust has grown on me, and it’s a language I would like to spend more time messing with. The next big thing I’d like to tackle is getting my head around macros.
I’m not ruling out going back to the puzzles I haven’t solved, but I don’t feel bad about leaving them undone: I’m doing what I can in the time I am allowing myself for these puzzles. I have other coding projects I’m trying to make time for (about which, more in another post, maybe). I’d also like to make more time to write – something I haven’t done much for a while now.
So, this is to say that I will try to do what I can of the remaining AoC puzzles, and upload my efforts to Codeberg, but I will likely not bother to blog about the remaining puzzles, unless there’s anything particularly interesting worth writing about.