Follow

I just completed “Toboggan Trajectory” - Day 3 - Advent of Code 2020 adventofcode.com/2020/day/3 using

Lessons (re-)learnt:

  • did you know that example data is also data? I’d forgotten it! Using that for testing made things easier - when I finally thought of it - since it’s so much smaller and easier to eyeball.
  • Julia’s dynamism came back to bite in the usual way it does - since there’s no variable declarations required, when I messed up a variable name change and left the old name in in some places, Julia was happy to treat those as two separate variables and end up with weird results.
  • Repl.it has a decent mode, but is otherwise a pain to use; it messes with outputs and makes error messages so much harder to read.
  • Good practices are good practices for a reason. Magic numbers and baked-in literals are fertile grounds for bugs, even in little one-off projects like this.
  • Naming things is hard!
Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.