Thank you for the feedback. I am glad you liked the articles.
I have an old tutorial that mentions defensive programming practices here:
This tutorial mentions a plug-in for a forms generation and processing package named secure_submit. The package is here:
Would you be interested that I create a tutorial about generating HTML to avoid CSRF attacks using the CSRF token mentioned in the article?