Config
ELI5 — The Vibe Check
Config is the settings panel for your code. Instead of hardcoding values like database URLs and API keys directly in your program, you put them in a config file. Change the settings, the behaviour changes — without touching the code itself.
Real Talk
Configuration files externalise environment-specific or user-specific values from the codebase. They come in formats like .env, YAML, JSON, TOML, or INI. Best practice is to never hardcode secrets and to keep config separate from code.
Show Me The Code
# .env
DATABASE_URL=postgres://user:pass@localhost:5432/mydb
JWT_SECRET=supersecret
PORT=3000
When You'll Hear This
"Check the config file for the database connection string." / "Never commit your config with secrets to git."
Related Terms
Boilerplate
Code you have to write every single time you start a project but that doesn't actually do anything interesting.
Lock File
A lock file is a snapshot of the exact versions of every package your project is using right now.
Scaffold
Scaffolding is when a tool auto-generates the skeleton of your project for you.
YAML (YAML)
YAML is a way to write structured data that actually looks like a human wrote it.