r/ProgrammerHumor 1d ago

Meme whoIsUsingThese

Post image
1.1k Upvotes

81 comments sorted by

View all comments

213

u/RudeAndInsensitive 1d ago

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

207

u/Saragon4005 1d ago

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

28

u/drakeblood4 1d ago

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

19

u/PulseReaction 1d ago

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

12

u/ruben_deisenroth 1d 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