Also sometimes you want to find the author of a piece of code to ask more questions why some things was done a certain way.
Ask HN: Do you ever truly use your revision history?
101–110 of 287 posts
Re: Ask HN: Do you ever truly use your revision history?
#102Recently I had to go back and find out why a particular conditional was added to the code. 10 years prior someone added in a particular conditional for a bug in IE8 (which we no longer support). There was a Jira associated with it. I then knew I could remove this odd logic as it was no-longer relevant.
Re: Ask HN: Do you ever truly use your revision history?
#103Call it insurance.
Re: Ask HN: Do you ever truly use your revision history?
#104On personal projects I don't use it that much.
Re: Ask HN: Do you ever truly use your revision history?
#105I think there's some indirect psychological value that shouldn't be underestimated. People have a tendency to comment out unused code "in case they still need it". Or not delete unused stuff, because who knows what. I have the feeling that I'm much more inclined to just delete a bunch of code lines that "I might still need in some situation" if I know there's version control. Because even if it's unlikely, "I can get…
Re: Ask HN: Do you ever truly use your revision history?
#106I was reading the business logic that triggered the bug and it made no sense.
I activated the blame view of the code, and I realized most of the code had been written in ~1998 but a couple lines had been updated in ~2007, by someone who probably never even met the original author.
Realizing that made it a lot easier to understand the context of the bug and fixing it.
There is a lot of value in knowing that two lines of code next to each other have been written decades apart by people that did not coordinate with each other. Never erase that history voluntarily.
Re: Ask HN: Do you ever truly use your revision history?
#107Re: Ask HN: Do you ever truly use your revision history?
#108After transitioning to freelancer and being the sole user of it, it finally allows me to use it for its true purpose, namely refreshing my memory on some techniques. Sometime I copy/pasta code from older revisions on a different project because that's the code I need for current project (while the current code of that project changed due to client requirements changes). Also sometime it's used by clients to see how the status of the project evolved over time, so it also serves as a metric purpose.
Re: Ask HN: Do you ever truly use your revision history?
#109Re: Ask HN: Do you ever truly use your revision history?
#110We just switched from Perforce to git at work, and about the first 2/3 of a project I work on got squashed together. It took me less than a week to bump in to that "initial commit" when trying to figure out why a bit of code is the way it is. "git blame" (or the p4 equivalent) is my usual archaeologic tool in this context, but "git bisect" has been very helpful in others. For the first, it should be easy to look at y…
I spent a couple months experimenting with p4git to make sure we got a real history imported. They didn’t get every repository right and I made them redo a few, did a few others over again myself. But lately I’ve been delving into some of the early architectural changes, trying to figure out why a bunch of things get loaded and seemingly never used/only used once... and sure enough someone did some sort of single com…
Interesting idea - how about using tags for this?