Staying safe as a developer

Knowledge Videos

Short animated explainers, organised by subject.

Staying safe as a developer

Habits that keep you and others safe when you build apps: no secrets in code or Git, made-up test data, never trusting input, crediting other people's work and being kind.

Try it

Transcript

Secrets, like passwords and keys, never go in your code or in Git. Keep them in a file that Git ignores. If a secret ever leaks, change it right away.

Use made up data when you test and when you show your work. Never put the real names, photos, addresses or school details of yourself or other people into a project.

Never trust input. Check what visitors send, and use placeholders for the database, so that a visitor can never change what your code does.

Respect other people's work. Check the licence before you copy code, and give credit. And be kind in comments and messages, just as you would in person.

Remember: keep secrets out of Git, use made up data, never trust input, give credit, and be kind.

More in this series