While programming i am always afraid that what i do, even if it works, is unsafe/deprecated (stuff like using the mysql API in php instead of mysqli or PDO).

I was asking myself how does someone keep up with the best practices for a certain field/programming language?

thanks

EDIT: Thanks to everyone that was exaustive

  • Seirdy
    link
    43 years ago
    • Official docs might mention them
    • Static analyzers/linters typically have docs in which they describe rationales for their rules
    • Crack open a book or two
    • Subscribe to RSS feeds for blogs from reputable people involved in the language’s development