DEV Community

LilaDoc
LilaDoc

Posted on

1

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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay