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

  • @fidibus@lemmy.161.social
    link
    fedilink
    63 years ago

    Honestly? You can’t. You can just learn new things and then use them.

    Many people say oh but it actually should be done this way (some standard), but in other places they just write spaghetti code for production. So this should only means that it results in better code. Doh, learning makes you better?!

    So it’s nice to develop test-driven, but if that’s too hard for you now don’t worry, many people can’t do it.