3 ms·
I was investigating an ansible playbook yesterday that had a 45 line comment to explain a single apt install command, completely and utterly useless. I am updat
by acedTrex 1mo ago
I was investigating an ansible playbook yesterday that had a 45 line comment to explain a single apt install command, completely and utterly useless. I am updating my neovim to just collapse all comments, the noise is unbearable.
- sevenseacat 1mo agoI've seen people report cleaner code by forbidding agents from writing comments. Anecdotal, but interesting.
- cpeterso 1mo agoMozilla's Firefox AGENTS.md begins with: Limit the amount of comments you put in the code to a strict minimum. You should almost never add comments, except sometimes on non-trivial code, function definitions if the arguments aren't self-explanatory, and class definitions and their members. Do not remove existing comments unless they are directly related to what you are changing. https://searchfox.org/firefox-main/source/AGENTS.md https://searchfox.org/firefox-main/source/AGENTS.md
- astrange 1mo agoSomething like this seems unlikely to work for a behavior so burned into them. It'd be better to do a second pass to delete all the nonsense comments.
- weknowbetter 1mo agoI promise you this doesn't work. Might help but not a lot.
- lelanthran 1mo agoIs anybody else concerned that we've gone from exactly specifying to a computer, using an exact language, what to do, to a more sophisticated form of prayer?
- krapp 1mo agoNah, I'm sure it's fine. What could possibly go wrong with abandoning nearly a hundred years of CS knowledge and hard-won lessons and replacing all of it with the equivalent of trying to convince a sociopathic teenager to clean their room?
- acedTrex 1mo agoThis is exactly what i do, i have a pi extension that blocks all comments.