Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • "The approach you are suggesting would be perfect for that kind of abuse" yikes I've been fortunate enough to never work at a place where people did that. "I take it that you are suggesting this would be somehow isolated in its own source files" yes, I usually define a constants file(s)/package(s) in my projects. Depending on the needs and complexity, also/instead sometimes a runtime configuration manager. I realize something based on this answer I need to stress more in my question: I'm mostly thinking of cases where people writing the code and people doing the configuring are the same people Commented Feb 15, 2024 at 18:29
  • 1
    @JaredSmith When I write little scripts that I run locally (mostly Python) I typically won't bother with configuration. A middle ground approach I sometimes use is to use a hardcoded dict for 'configuration' which I can replace easily with a toml file if it makes it past the experimentation phase. Commented Feb 15, 2024 at 18:50