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

  • Ephera
    link
    fedilink
    arrow-up
    4
    ·
    4 years ago

    Or to give maybe a more direct example: My company paid for a security training which is available for different programming languages.
    I chose Scala, because that’s what I mostly code in, and because of that, all the code examples are just the goofiest thing.

    “Here’s a really dangerous security vulnerability and you need to write extra code to prevent this. Well, in Scala, this isn’t the case, the default is actually correct, but let’s just assume a previous programmer explicitly wrote out two lines of code to allow the security vulnerability for no reason at all. Now, how do we fix this? Oh yeah, we just delete those two lines.”