• KrokanteBamischijf@feddit.nl
    link
    fedilink
    arrow-up
    1
    ·
    10 months ago

    Honestly that probably goes for any interpreted programming language that supports imports.

    Many Javascript frameworks just put their configuration into -.config.js files in the project root. Which is a pretty elegant solution that does not require custom parsing. Just import the config and go nuts.

    Compiled (and by extension bundled) software obviously requires a different approach, but at that point you should probably consider storing your config in some kind of database.

    Maybe there just isn’t a right answer to the config conundrum if all the general solutions are janky in some way.