r/programminghumor • u/mikosullivan • Apr 27 '26
The harshest technical documentation I've ever written
If a developer mixes tabs and spaces then that's sloppy and I won't take the blame for it. Ugly results will be their own damn fault and they deserve it.
8
Upvotes
6
u/Thinshape12 Apr 27 '26
Oh god people do that?
3
u/klimmesil Apr 27 '26 edited Apr 27 '26
If your company size and backlog allows for it, just spend a half day setting up a dev container for all IDEs so this doesn't happen
Edit: even if it's not your scope. This is usually appreciated, understood as important, and it makes your own life easier (as long as your manager is a tad technical too they'll understand)
4
u/TomKavees Apr 27 '26
Assuming they don't use notepad as their IDE adding
.editorconfigto the repo could fix that1
u/BobQuixote Apr 29 '26
The right solution is a formatter accepted as canonical for the project and installed in all editors / pre-commit pipelines.
1
u/dodexahedron Apr 29 '26
A git commit hook will solve that permanently.
1
u/[deleted] Apr 30 '26
I'm not EXPERIENCED, but I don't even make this mistake. Tab only all the way.