DEV Community

Lilajy
Lilajy

Posted on

What rules did I learn so far from doing the Advent of Code? πŸŽ„

I am enjoying December and all the Christmas vibes.

And what better Advent calendar than the Advent Of Code? I'm thankful to the creators because I've learned so much so far and it's exquisitely fun! 🫢🏽

Here are some rules that I took from practicing the Advent Of Code. Maybe it could serve someone else.

  • When you think you understood the subject, read it again.
  • Avoid Global Variables.
  • Fraction your code!
  • Talk to yourself (use detail in your console.log, use comments).
  • Take breaks from your code (it’s not going anywhere).
  • Detail your algorithm on paper. Unfold every single step. Use pseudocode.

And that's it πŸ‘‹πŸ½

Top comments (0)