News for hackers. Stuff that matters.
Re:Getting to Two Million Users as a One Woman Dev Team by wink on Tuesday December 17, 2024 @11:30AM (#42442715)
You would find it if you knew it was there.

I only leave it commented out because it has a reason (they all say that, right?).

I suppose the best way would be to provide a meaningful comment "This is the place where 15 lines of coded finally found their resting place, deleted after the bug they solved was eliminated elsewhere".

But in reality, I've never seen a single of the "we could find it it in git" ever actually find it in git.

Re:Getting to Two Million Users as a One Woman Dev Team by devjab on Tuesday December 17, 2024 @01:38PM (#42443971)
Well yes, but you’re not leaving commented out code for anyone other than you. A “sane” git structure will automatically decline your pull request if it contains commented out code.

I say “sane” because I know a lot of places probably allow you to do it. You really don’t want to pollute a code base like that though.