Early on, you learn a lot of rules.

Always handle the error.

Never trust user input.

Keep functions small.

You follow them because someone told you to, and following them keeps you out of trouble.