Skip to main content
CODING-FUNDAMENTALS5 MIN READ

Sort Config, Constants, and Secrets

Classify values by whether they are code constants, deploy config, or secrets.

Place each value where it belongs for a typical web service. Protected secret Deploy config Code-owned constant Database password used by production app instances PAYMENTS_BASE_URL differs between staging and production Maximum password length required by the product spec Webhook signing secret from a payment provider Feature flag enabling a beta workflow for one environment The list of supported invoice statuses in the domain model classification

Read the full lesson

Sign up free — one personalized lesson every day, matched to your role and goals.

Already have an account? Sign in

← Back to library
Contact us