Lessons learned from doing (some of) Advent of Code 2018

December 24, 2018

Realisations. Some old, some new.

  • JUnitParams is a cool library for unit testing in Java and really aids test-driven development by making it quick and easy to cover all cases
  • Writing code in Java means writing boilerplate code – not ideal for this sort of endeavour. It’s really easy to end up with lots of superfluous (for the core task at hand) code, especially if being strict about TDD.
  • I can’t write code (well) to music with lots of lyrics. I’ve being enjoying Burial, Mogwai, Julianna Barwick and Grouper. How festive.
  • Sometimes it’s just easier to rip it up and start again, as well as being pretty cathartic