I think that one of best coding practices I have learned over time which can help improve the quality of software is the defensive programming; consequently, I share this link with you in order to explain what I’m refer to.
Go to Bolivartech article: Defensive programming to mitigate security breach and unforeseen events