This story is unavailable.

One thing that I learned from my senior way way back was to also do defensive coding.

It can lessen your code from throwing exceptions/errors.

Combine that with clean code practices, unit tests and new developers won’t be having a hard time understanding your code base.

Here’s a Medium story for that by Diego Mariani: https://medium.com/web-engineering-vox/the-art-of-defensive-programming-6789a9743ed4