Why Nostr? What is Njump?
2024-09-23 17:57:58
in reply to

ChipTuner on Nostr: > in my 8 years working in this field my biggest take-away, as of recent days, is ...

> in my 8 years working in this field my biggest take-away, as of recent days, is that you make so much trouble adding features
You're right.

My big thing is unless you require the user to add another system like dotenv it's not simple to store state unless you write a script that exports variables.

My other point, I remembered was, I don't like env variables for system configuration, tuning maybe. I use them like many other libraries do, for adjusting startup library behavior. For instance, enabling debugging, tracing, specifying the heap binary to map into the process, things that are meant to be transparent to the application developer at startup. If the library is used widley, it needs global state, the best way to ensure that variable is set when the process starts is with an env.

Other than that, strict typing and language enforcement that I don't have to write parsing code is good. Errors in configuration data is easier to validate and give clear feedback is also a big deal.

I was going to get into secrets, but its kind of pedantic, I don't like secrets in environment variables.
Author Public Key
npub1qdjn8j4gwgmkj3k5un775nq6q3q7mguv5tvajstmkdsqdja2havq03fqm7