For young developers
Privacy and consent: a guide for young developers
You built a sign-up form, a Discord bot, a game with a leaderboard. The moment someone types something into it, you are holding something that belongs to them.
That is what privacy is, in practice: looking after other people's information the way you would want yours looked after. Consent is the other half: asking first, in plain words, and taking no for an answer.
You do not need a legal team to start. You need a few habits, built in from the first commit. They are much easier to add at the start than to bolt on after people are already using what you made.
Collect only what you need
For every field, ask: what breaks if I do not ask for this? If the answer is "nothing", delete the field.
A leaderboard needs a nickname, not a real name. A password reset needs an email address, not a phone number and a birthday. Data you do not collect is data you do not have to protect, explain, or lose.
Ask clearly, and ask before
Tell people what you want, why, and what you will do with it, at the moment you ask, in words a twelve-year-old would understand. Not in paragraph nine of a policy.
Ask before you collect, not after. A checkbox that is already ticked is not a yes. Neither is "by using this app you agree".
Make no as easy as yes
The "No thanks" button should be as big and as easy to find as the "Yes" button. If someone says no to something optional, the rest of your app should still work.
Skip the guilt trip. "No, I don't like free stuff" is a trick, not a choice, and people notice.
Use it only for what they agreed to
An email address someone gave you for password resets is not a newsletter list. Location someone shared to find a nearby court is not something to save forever.
If you want to use data for something new, ask again.
Take extra care with children's data
If kids might use what you build, raise the bar. Ask for less. Skip real names, photos, school names, and precise location. Think about how a parent would find out what you hold, and how they would remove it.
Here is how one family app handles it. Arti and Me, which publishes this article, is built for parents, not children. Children do not have accounts and do not sign in. A parent adds each child under a nickname the parent chooses, and the app does not collect pictures of children. It does keep quiz and lesson results, because that is how it can tell whether the lessons work. Less is not the same as nothing. The point is to know exactly what you keep, and why. The team's own line for it: we teach privacy, so we practice it.
Let people see and delete what you hold
Give people a way to see what you have about them and a way to delete it. A "Delete my account" button that actually deletes is one of the most trust-building features you can ship.
If you keep anything after someone deletes their account, say what and why, before they press the button.
Protect what you keep
- Keep API keys, tokens, and passwords out of your code and out of your Git history. Use environment variables or a secrets manager.
- Store passwords with a library built for it, such as bcrypt or Argon2. Do not store them as plain text, and do not invent your own scheme.
- Use HTTPS everywhere.
- Do not write personal data or passwords into your logs.
- Give each person and each service only the access it needs.
- Delete old data you no longer use.
Think before you add tracking
Every analytics tool, ad library, or SDK you add can collect data on its own terms, not yours. Before you add one, find out what it sends and where. Often a simple count of how many people used a feature tells you what you need, without following anyone around.
If you would feel awkward explaining a tracker to the people using your app, that is your answer.
Other people's photos, voices, and words
Your project can hold other people's information too, not just your users'.
Ask before you put a friend's photo, video, voice, or name in your game or on your site. A group photo needs everyone's yes, not just yours. If the person is a child, ask their parent too.
Screenshots of a group chat contain other people's words. So does scraped data. Get permission, or leave it out.
Do not feed someone's photos or voice recordings into an AI tool to copy their face or voice without their clear permission. A yes to being in a video is not a yes to being cloned.
What about the law?
This article is not legal advice, and following it does not make a project compliant with any law. Rules depend on what you build, who uses it, and where they live. Here is one you may run into:
- In the United States, the Children's Online Privacy Protection Act (COPPA), 15 U.S.C. 6501 to 6505, with the FTC's rule at 16 CFR Part 312, sets requirements for operators of websites and online services directed to children under 13, or that know they are collecting personal information from a child under 13.
Many US states, and other countries, have their own rules. Check what applies to you, and when real users and real data are involved, ask an adult you trust or a lawyer.
The checklist
Before you ship, go down this list:
- Every field I collect has a reason I can say in one sentence.
- I ask before I collect, in plain words, with nothing pre-ticked.
- No is as easy to click as yes, and the app still works after a no.
- I use data only for what people agreed to.
- If kids might use it, I collect less and a parent can see and remove it.
- People can see and delete what I hold about them.
- No secrets in my code, passwords hashed, HTTPS on, nothing personal in the logs.
- I know what every analytics tool and SDK in my project sends, and where.
- I have permission for every photo, voice, and name in my project.
- I have checked which laws apply to what I am building.
Privacy is not a feature you add at the end. It is how you treat the people who trust you with something. Build it in from the start, and it will be one of the best things about what you make.