Use Sample Code in Production

Only use sample code as an educational tool in preparation for developing your own application. When building your production code, always write the code yourself. Avoid copying code from sources that you don’t directly control.

There’s great sample code available to developers all over the internet. While useful in learning best practices or new technologies, don’t directly include sample code in production packages. Direct reuse can propagate vulnerabilities throughout many packages, whether intentional or not on the part of the sample code author.