1. Altough this article is mainly about PHP, I try to apply these concepts to my Python code too and have been pretty succesful at it.