8/4/2026 at 4:50:24 PM
This article reads like more of an ad than anything else.> Environment variables only deliver values
Yes, the problem .env files try to solve is having "environment variables" be injectable from a file so that different applications can have different environment variables by default.
> A string is not a schema
Yes, input validation is an application concern. The application should know what these values represent / how to parse them and error if they're invalid.
I could go on, but the article is all about trying to use a hammer as a screwdriver and complaining that the hammer doesnt work.
by chacham15
8/4/2026 at 5:02:08 PM
> Yes, the problem .env files try to solve is having "environment variables" be injectable from a file so that different applications can have different environment variables by default.This seems like a misunderstanding: The `.env` file should be `source`d into the current shell (environment). The application reads values using whatever mechanism it uses to read these values from the environment. Nothing should be “injected” into the application, i.e. the application should not read `.env` directly.
(Not sure if you were just being loose with your terminology, trying to clarify.)
by jt2190
8/4/2026 at 5:22:41 PM
Does it matter whether the app reads `.env` directly though?by throw-the-towel
8/4/2026 at 5:26:04 PM
Maybe. How does the application unify different environment variables? Those inherited by the shell, those read from .profile, those set in the process that start the application (be that ./run.sh, a nodejs script, systemd etc...).by e12e
8/4/2026 at 7:37:29 PM
Why would it want to? I'd say what you're asking for is actually a code smell. An app should not have a bazillion interlocking ways to be configured, unless there's a strong reason for this!by throw-the-towel
8/4/2026 at 10:53:10 PM
> Why would it want to?Because well behaved applications play nice with their host system.
I have a strong suspicion that you’re thinking about application configuration, not environment configuration.
by jt2190
8/4/2026 at 8:04:16 PM
It's not the app, it's the environment variables that have many ways to be configured.by sejje
8/4/2026 at 7:51:09 PM
First couple sentences sounded like AI so I just stopped.by nsxwolf