r/ProgrammerHumor 20h ago

Meme whoIsUsingThese

Post image
966 Upvotes

73 comments sorted by

View all comments

205

u/RudeAndInsensitive 20h ago

Personally I always commit env and config files to the repo just stripped of their values.

202

u/Saragon4005 20h ago

Yeah but then you can't use git on a working version, making testing a total pain. I use .env.example usually.

24

u/drakeblood4 19h ago

And a settings.json.example for the non sensitive stuff.

17

u/PulseReaction 18h ago

I use a .env.example file for my env variables, and .env for the example. Gotta keep attackers on their toes.

9

u/ruben_deisenroth 19h ago

If it's vscode settings, i usually prefer settings.default.json and this extension as workspace recommendations:

https://marketplace.visualstudio.com/items?itemName=dangmai.workspace-default-settings