Validate User Input, Not Developer Input

I have a very simple rule, I like to follow that helps to simplify my code. “Don’t validate developer input” This rule simply means that we should not try and validate input that came from a source that is not a user or external system. Another way to put it would be, don’t validate parameters you pass around in your …